[android] signal renderer when gl surface is re-initialized that gl context is lost
This commit is contained in:
committed by
Ivo van Dongen
parent
bda6ed26c6
commit
8182b26dfe
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user