From 247aaee9808fb9586b0114b2aed27c99d712f59d Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Fri, 15 Sep 2017 18:03:35 +0300 Subject: [android] signal renderer when gl surface is re-initialized that gl context is lost --- platform/android/src/map_renderer.cpp | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v1.2.1