mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-21 14:29:55 +00:00
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()
|
void prepare()
|
||||||
{
|
{
|
||||||
|
if (size.x <= 0 || size.y <= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
bool updateBaseQuadArray = false;
|
bool updateBaseQuadArray = false;
|
||||||
|
|
||||||
if (baseVertDirty)
|
if (baseVertDirty)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue