[android] signal renderer when gl surface is re-initialized that gl context is lost

This commit is contained in:
Ivo van Dongen
2017-09-15 18:03:35 +03:00
committed by Ivo van Dongen
parent bda6ed26c6
commit 8182b26dfe

View File

@@ -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();