- 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

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