summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/context.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gl/context.hpp')
-rw-r--r--src/mbgl/gl/context.hpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mbgl/gl/context.hpp b/src/mbgl/gl/context.hpp
index 14f078367f..db7b8e133e 100644
--- a/src/mbgl/gl/context.hpp
+++ b/src/mbgl/gl/context.hpp
@@ -41,7 +41,9 @@ public:
Context();
~Context();
- void initializeExtensions(const std::function<gl::ProcAddress(const char*)>&);
+ void initializeExtensions(const std::function<gl::ProcAddress(const char*)>&,
+ bool disableVAOExtension,
+ bool disableProgramBinariesExtension);
void enableDebugging();
@@ -287,15 +289,6 @@ private:
std::vector<VertexArrayID> abandonedVertexArrays;
std::vector<FramebufferID> abandonedFramebuffers;
std::vector<RenderbufferID> abandonedRenderbuffers;
-
-public:
- // For testing and Windows because Qt + ANGLE
- // crashes with VAO enabled.
-#if defined(_WINDOWS)
- bool disableVAOExtension = true;
-#else
- bool disableVAOExtension = false;
-#endif
};
} // namespace gl