- fixed crash on texture init.

This commit is contained in:
Christoph Oelckers 2020-09-27 13:32:30 +02:00
parent 348f9ae68c
commit df3dc91514

View file

@ -239,7 +239,7 @@ public:
TexelWidth = x;
TexelHeight = y;
SetDisplaySize(float(x), float(y));
GetTexture()->SetSize(x, y);
if (GetTexture()) GetTexture()->SetSize(x, y);
}
void SetDisplaySize(float w, float h)
{