Fix ErrorSurfaceLostKHR exception (#3337)
This commit is contained in:
@@ -111,7 +111,7 @@ public class VulkanTextureViewRenderThread extends TextureViewRenderThread {
|
||||
if (destroySurface) {
|
||||
mapRenderer.onSurfaceDestroyed();
|
||||
destroySurface = false;
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
|
||||
// If the surface size has changed inform the map renderer.
|
||||
@@ -121,6 +121,10 @@ public class VulkanTextureViewRenderThread extends TextureViewRenderThread {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (surface == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Time to render a frame
|
||||
mapRenderer.onDrawFrame();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user