Fix minimize crash

This commit is contained in:
Magnus Norddahl 2016-09-04 03:15:50 +02:00
commit 5f02e08c8e
2 changed files with 9 additions and 0 deletions

View file

@ -444,6 +444,8 @@ void FGLRenderer::ClearBorders()
int clientWidth = framebuffer->GetClientWidth();
int clientHeight = framebuffer->GetClientHeight();
if (clientWidth == 0 || clientHeight == 0)
return;
glViewport(0, 0, clientWidth, clientHeight);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);