diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-09-15 18:03:35 +0300 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-09-22 23:33:56 +0300 |
commit | 8182b26dfe7c1ffd5066e9f0c2f9536264308067 (patch) | |
tree | 850290b8d2b60e3eef29e15d780c16eb2b5efd3a | |
parent | bda6ed26c65b541b0633fcdf824f2baef30aa0cc (diff) | |
download | qtlocation-mapboxgl-8182b26dfe7c1ffd5066e9f0c2f9536264308067.tar.gz |
[android] signal renderer when gl surface is re-initialized that gl context is lost
-rw-r--r-- | platform/android/src/map_renderer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/src/map_renderer.cpp b/platform/android/src/map_renderer.cpp index b2186e6272..0db41ffe8a 100644 --- a/platform/android/src/map_renderer.cpp +++ b/platform/android/src/map_renderer.cpp @@ -113,6 +113,7 @@ void MapRenderer::onSurfaceCreated(JNIEnv&) { // GL resources if this is not the first intialization and an // attempt to clean them up will fail if (backend) backend->markContextLost(); + if (renderer) renderer->markContextLost(); // Reset in opposite order renderer.reset(); |