diff options
author | Leith Bade <leith@mapbox.com> | 2014-11-25 19:58:45 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2014-11-28 00:11:37 +1100 |
commit | eac887c1b8c6ceb06c8eb568eaf42939c0f02fdb (patch) | |
tree | 307dfe832f9d2a6e120d60a9de1cc5c44b2eb58b /android/cpp/native_map_view.cpp | |
parent | 705552c26ee501fec4dcdbec4b3248fbb24eb293 (diff) | |
download | qtlocation-mapboxgl-eac887c1b8c6ceb06c8eb568eaf42939c0f02fdb.tar.gz |
Check for packed depth stencil
Diffstat (limited to 'android/cpp/native_map_view.cpp')
-rw-r--r-- | android/cpp/native_map_view.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/android/cpp/native_map_view.cpp b/android/cpp/native_map_view.cpp index 84bb3dca7a..f1d3c8d0f8 100644 --- a/android/cpp/native_map_view.cpp +++ b/android/cpp/native_map_view.cpp @@ -533,6 +533,16 @@ void NativeMapView::loadExtensions() { gl::IsVertexArray = nullptr; } } + + if (extensions.find("GL_OES_packed_depth_stencil") != std::string::npos) { + mbgl::Log::Info(mbgl::Event::OpenGL, "Using GL_OES_packed_depth_stencil."); + gl::is_packed_depth_stencil_supported = true; + } + + if (extensions.find("GL_OES_depth24") != std::string::npos) { + mbgl::Log::Info(mbgl::Event::OpenGL, "Using GL_OES_depth24."); + gl::is_depth24_supported = true; + } } void NativeMapView::stop() { |