summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/context.hpp
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.deoliveira@mapbox.com>2018-08-28 14:03:38 +0300
committerAnder Conselvan de Oliveira <ander.deoliveira@mapbox.com>2018-09-14 15:26:45 +0300
commit1c53dc9ca8d90111c215643322114de2e7040e9c (patch)
treeda4a5066b61261bc71e9da2f4fe057e01faf996e /src/mbgl/gl/context.hpp
parentb9ef805ae03dc4fafde7ad74132cfb7d190401aa (diff)
downloadqtlocation-mapboxgl-1c53dc9ca8d90111c215643322114de2e7040e9c.tar.gz
[core] Refactor vertex array object extension initialization
Currently the vertex object extension is disabled through an ifdef for the Windows platform due to an issue with ANGLE, while there is a blacklist for other platforms. Unify those by adding ANGLE to that blacklist and some small refactoring.
Diffstat (limited to 'src/mbgl/gl/context.hpp')
-rw-r--r--src/mbgl/gl/context.hpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mbgl/gl/context.hpp b/src/mbgl/gl/context.hpp
index f8cb546585..bd682f44da 100644
--- a/src/mbgl/gl/context.hpp
+++ b/src/mbgl/gl/context.hpp
@@ -305,13 +305,8 @@ private:
std::vector<RenderbufferID> abandonedRenderbuffers;
public:
- // For testing and Windows because Qt + ANGLE
- // crashes with VAO enabled.
-#if defined(_WINDOWS)
- bool disableVAOExtension = true;
-#else
+ // For testing
bool disableVAOExtension = false;
-#endif
};
} // namespace gl