- r_vanillatrans: Cache the cache! Transform the function into a global variable and recheck at the start of D_Display
This commit is contained in:
parent
5eaf085d58
commit
c18134dbd3
6 changed files with 8 additions and 4 deletions
|
|
@ -146,7 +146,7 @@ void RenderPolySprite::Render(const TriMatrix &worldToClip, const PolyClipPlane
|
|||
args.SetStencilTestValue(stencilValue);
|
||||
args.SetWriteStencil(true, stencilValue);
|
||||
args.SetClipPlane(clipPlane);
|
||||
if ((thing->renderflags & RF_ZDOOMTRANS) && UseVanillaTransparency())
|
||||
if ((thing->renderflags & RF_ZDOOMTRANS) && r_UseVanillaTransparency)
|
||||
args.SetStyle(LegacyRenderStyles[STYLE_Normal], 1.0f, thing->fillcolor, thing->Translation, tex, fullbrightSprite);
|
||||
else
|
||||
args.SetStyle(thing->RenderStyle, thing->Alpha, thing->fillcolor, thing->Translation, tex, fullbrightSprite);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue