summaryrefslogtreecommitdiff
path: root/android/cpp/native_map_view.cpp
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2014-11-25 19:58:45 +1100
committerLeith Bade <leith@mapbox.com>2014-11-28 00:11:37 +1100
commiteac887c1b8c6ceb06c8eb568eaf42939c0f02fdb (patch)
tree307dfe832f9d2a6e120d60a9de1cc5c44b2eb58b /android/cpp/native_map_view.cpp
parent705552c26ee501fec4dcdbec4b3248fbb24eb293 (diff)
downloadqtlocation-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.cpp10
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() {