summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-09-15 18:03:35 +0300
committerIvo van Dongen <info@ivovandongen.nl>2017-09-22 12:52:13 +0300
commit247aaee9808fb9586b0114b2aed27c99d712f59d (patch)
tree6a9ba3400c7e9866f12c18c0f51b4b90f267e014
parent3c9da2f57114df1a44a07b4b905fedf25be77609 (diff)
downloadqtlocation-mapboxgl-247aaee9808fb9586b0114b2aed27c99d712f59d.tar.gz
[android] signal renderer when gl surface is re-initialized that gl context is lost
-rw-r--r--platform/android/src/map_renderer.cpp1
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();