Merge pull request #1798 from Owain94/glerror

gpu: Catch GLException
This commit is contained in:
ST0NEWALL
2019-10-16 22:25:21 -04:00
committed by GitHub

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