diff options
author | Leith Bade <leith@mapbox.com> | 2015-01-05 12:28:32 +1300 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2015-01-05 12:28:32 +1300 |
commit | 8eceb082bab11fb1fd7d2dcfe85152daa6c54da4 (patch) | |
tree | 262842ac8cae9118de72903fe84e64357888c407 /android | |
parent | ff6492e5a3181803e2481e3b68a77f7c49b2b57f (diff) | |
download | qtlocation-mapboxgl-8eceb082bab11fb1fd7d2dcfe85152daa6c54da4.tar.gz |
Add failsafe to program binary loading
Diffstat (limited to 'android')
-rw-r--r-- | android/cpp/native_map_view.cpp | 4 | ||||
-rw-r--r-- | android/java/lib/src/main/java/com/mapbox/mapboxgl/lib/MapView.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/android/cpp/native_map_view.cpp b/android/cpp/native_map_view.cpp index 986d339023..64bca2d592 100644 --- a/android/cpp/native_map_view.cpp +++ b/android/cpp/native_map_view.cpp @@ -624,6 +624,7 @@ void NativeMapView::loadExtensions() { } if (extensions.find("GL_OES_get_program_binary") != std::string::npos) { + mbgl::Log::Info(mbgl::Event::OpenGL, "Using GL_OES_get_program_binary."); GLint numBinaryFormats; MBGL_CHECK_ERROR(glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &numBinaryFormats)); if (numBinaryFormats > 0) { @@ -638,6 +639,7 @@ void NativeMapView::loadExtensions() { } if (extensions.find("GL_KHR_debug") != std::string::npos) { + mbgl::Log::Info(mbgl::Event::OpenGL, "Using GL_KHR_debug."); gl::DebugMessageControl = reinterpret_cast<gl::PFNGLDEBUGMESSAGECONTROLPROC>( eglGetProcAddress("glDebugMessageControl")); gl::DebugMessageInsert = reinterpret_cast<gl::PFNGLDEBUGMESSAGEINSERTPROC>( @@ -673,6 +675,7 @@ void NativeMapView::loadExtensions() { assert(gl::GetObjectPtrLabel != nullptr); } else { if (extensions.find("GL_EXT_debug_marker") != std::string::npos) { + mbgl::Log::Info(mbgl::Event::OpenGL, "Using GL_EXT_debug_marker."); gl::InsertEventMarkerEXT = reinterpret_cast<gl::PFNGLINSERTEVENTMARKEREXTPROC>( eglGetProcAddress("glInsertEventMarkerEXT")); gl::PushGroupMarkerEXT = reinterpret_cast<gl::PFNGLPUSHGROUPMARKEREXTPROC>( @@ -685,6 +688,7 @@ void NativeMapView::loadExtensions() { } if (extensions.find("GL_EXT_debug_label") != std::string::npos) { + mbgl::Log::Info(mbgl::Event::OpenGL, "Using GL_EXT_debug_label."); gl::LabelObjectEXT = reinterpret_cast<gl::PFNGLLABELOBJECTEXTPROC>( eglGetProcAddress("glLabelObjectEXT")); gl::GetObjectLabelEXT = reinterpret_cast<gl::PFNGLGETOBJECTLABELEXTPROC>( diff --git a/android/java/lib/src/main/java/com/mapbox/mapboxgl/lib/MapView.java b/android/java/lib/src/main/java/com/mapbox/mapboxgl/lib/MapView.java index 8985c318bb..bd37d38062 100644 --- a/android/java/lib/src/main/java/com/mapbox/mapboxgl/lib/MapView.java +++ b/android/java/lib/src/main/java/com/mapbox/mapboxgl/lib/MapView.java @@ -405,7 +405,7 @@ public class MapView extends SurfaceView { outState.putBoolean(STATE_DEBUG_ACTIVE, isDebugActive()); outState.putString(STATE_STYLE_URL, getStyleUrl()); outState.putString(STATE_ACCESS_TOKEN, getAccessToken()); - outState.putStringArrayList(STATE_APPLIED_CLASSES, new ArrayList<String>(getAppliedStyleClasses())); + //outState.putStringArrayList(STATE_APPLIED_CLASSES, new ArrayList<String>(getAppliedStyleClasses())); outState.putLong(STATE_DEFAULT_TRANSITION_DURATION, mNativeMapView.getDefaultTransitionDuration()); } |