From 071485b22e60309b09f70727cf9bbc9afa1c3caa Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 25 Jul 2016 11:55:47 +0200 Subject: [PATCH] - fixed: If the resulting render style, after all adjustments, is None for the weapon sprite, do not attempt to draw it at all. --- src/gl/scene/gl_weapon.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gl/scene/gl_weapon.cpp b/src/gl/scene/gl_weapon.cpp index 0e2e962da..34779ec7c 100644 --- a/src/gl/scene/gl_weapon.cpp +++ b/src/gl/scene/gl_weapon.cpp @@ -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