Fix minimize crash
This commit is contained in:
parent
dc39a006dc
commit
5f02e08c8e
2 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue