Window: Don't update anything if width*height == 0
Fixes GL errors.
This commit is contained in:
parent
19b1c3d7c2
commit
2cd70b9edd
1 changed files with 3 additions and 0 deletions
|
@ -511,6 +511,9 @@ struct WindowPrivate
|
|||
|
||||
void prepare()
|
||||
{
|
||||
if (size.x <= 0 || size.y <= 0)
|
||||
return;
|
||||
|
||||
bool updateBaseQuadArray = false;
|
||||
|
||||
if (baseVertDirty)
|
||||
|
|
Loading…
Add table
Reference in a new issue