- 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
|
|
@ -213,7 +213,7 @@ namespace swrenderer
|
|||
if (thing->flags5 & MF5_BRIGHT)
|
||||
vis->renderflags |= RF_FULLBRIGHT; // kg3D
|
||||
vis->RenderStyle = thing->RenderStyle;
|
||||
if (UseVanillaTransparency())
|
||||
if (r_UseVanillaTransparency)
|
||||
{
|
||||
if (thing->renderflags & RF_ZDOOMTRANS)
|
||||
vis->RenderStyle = LegacyRenderStyles[STYLE_Normal];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue