diff --git a/src/common/textures/gametexture.h b/src/common/textures/gametexture.h index ec013b3d5..c07753eac 100644 --- a/src/common/textures/gametexture.h +++ b/src/common/textures/gametexture.h @@ -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) {