Window: Don't update anything if width*height == 0

Fixes GL errors.
This commit is contained in:
Jonas Kulla 2014-10-15 06:26:46 +02:00
parent 19b1c3d7c2
commit 2cd70b9edd
1 changed files with 3 additions and 0 deletions

View File

@ -511,6 +511,9 @@ struct WindowPrivate
void prepare() void prepare()
{ {
if (size.x <= 0 || size.y <= 0)
return;
bool updateBaseQuadArray = false; bool updateBaseQuadArray = false;
if (baseVertDirty) if (baseVertDirty)