mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- fixed: If the resulting render style, after all adjustments, is None for the weapon sprite, do not attempt to draw it at all.
This commit is contained in:
parent
41e959e102
commit
071485b22e
1 changed files with 5 additions and 0 deletions
|
@ -338,6 +338,11 @@ void FGLRenderer::DrawPlayerSprites(sector_t * viewsector, bool hudModelStep)
|
|||
vis.RenderStyle.Flags |= STYLEF_InvertSource;
|
||||
}
|
||||
}
|
||||
if (vis.RenderStyle.AsDWORD == 0)
|
||||
{
|
||||
// This is RenderStyle None.
|
||||
return;
|
||||
}
|
||||
|
||||
// Set the render parameters
|
||||
|
||||
|
|
Loading…
Reference in a new issue