mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-30 16:01:49 +00:00
Add more checks for FTexture::TEX_Null
This commit is contained in:
parent
9ed02a6aec
commit
480b22c50e
2 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ void RenderPolySprite::Render(const TriMatrix &worldToClip, const Vec4f &clipPla
|
||||||
|
|
||||||
bool flipTextureX = false;
|
bool flipTextureX = false;
|
||||||
FTexture *tex = GetSpriteTexture(thing, flipTextureX);
|
FTexture *tex = GetSpriteTexture(thing, flipTextureX);
|
||||||
if (tex == nullptr)
|
if (tex == nullptr || tex->UseType == FTexture::TEX_Null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
DVector2 spriteScale = thing->Scale;
|
DVector2 spriteScale = thing->Scale;
|
||||||
|
|
|
@ -38,7 +38,7 @@ void RenderPolyWallSprite::Render(const TriMatrix &worldToClip, const Vec4f &cli
|
||||||
|
|
||||||
bool flipTextureX = false;
|
bool flipTextureX = false;
|
||||||
FTexture *tex = RenderPolySprite::GetSpriteTexture(thing, flipTextureX);
|
FTexture *tex = RenderPolySprite::GetSpriteTexture(thing, flipTextureX);
|
||||||
if (tex == nullptr)
|
if (tex == nullptr || tex->UseType == FTexture::TEX_Null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
DVector2 spriteScale = thing->Scale;
|
DVector2 spriteScale = thing->Scale;
|
||||||
|
|
Loading…
Reference in a new issue