Fix ErrorSurfaceLostKHR exception (#3337)

This commit is contained in:
Adrian Cojocaru
2025-03-25 18:03:47 +02:00
committed by GitHub
parent c4f33fab32
commit b40b78329f

View File

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