Window: Don't update anything if width*height == 0
Fixes GL errors.
This commit is contained in:
parent
19b1c3d7c2
commit
2cd70b9edd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue