[core] remove dependence on gl.h types
This commit is contained in:
committed by
John Firebaugh
parent
15aece8a30
commit
cc78b74098
@@ -86,8 +86,3 @@ extern ExtensionFunction<void (GLsizei n, GLuint* arrays)>
|
||||
|
||||
} // namespace gl
|
||||
} // namespace mbgl
|
||||
|
||||
#ifdef GL_ES_VERSION_2_0
|
||||
#define glClearDepth glClearDepthf
|
||||
#define glDepthRange glDepthRangef
|
||||
#endif
|
||||
|
||||
@@ -45,10 +45,10 @@ enum class MapDebugOptions : EnumType {
|
||||
Collision = 1 << 4,
|
||||
Overdraw = 1 << 5,
|
||||
// FIXME: https://github.com/mapbox/mapbox-gl-native/issues/5117
|
||||
#ifndef GL_ES_VERSION_2_0
|
||||
#if not MBGL_USE_GLES2
|
||||
StencilClip = 1 << 6,
|
||||
DepthBuffer = 1 << 7,
|
||||
#endif // GL_ES_VERSION_2_0
|
||||
#endif // MBGL_USE_GLES2
|
||||
};
|
||||
|
||||
constexpr MapDebugOptions operator|(MapDebugOptions lhs, MapDebugOptions rhs) {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <mbgl/util/timer.hpp>
|
||||
#include <mbgl/util/geometry.hpp>
|
||||
|
||||
#ifdef MBGL_USE_GLES2
|
||||
#if MBGL_USE_GLES2
|
||||
#define GLFW_INCLUDE_ES2
|
||||
#endif
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
|
||||
Reference in New Issue
Block a user