gpu: Catch GLException

This commit is contained in:
Owain van Brakel
2019-10-16 03:26:24 +02:00
parent de940648f2
commit 7336a13d47

View File

@@ -1189,7 +1189,12 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
// Texture on UI
drawUi(canvasHeight, canvasWidth);
glDrawable.swapBuffers();
try
{
glDrawable.swapBuffers();
}
catch (GLException ignored)
{ }
drawManager.processDrawComplete(this::screenshot);
}