- 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:
Christoph Oelckers 2016-07-25 11:55:47 +02:00
parent 41e959e102
commit 071485b22e
1 changed files with 5 additions and 0 deletions

View File

@ -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