- 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
|
|
@ -32,6 +32,7 @@
|
|||
#include "c_dispatch.h"
|
||||
#endif
|
||||
|
||||
bool r_UseVanillaTransparency;
|
||||
CVAR (Int, r_vanillatrans, 2, CVAR_ARCHIVE)
|
||||
|
||||
namespace
|
||||
|
|
|
|||
|
|
@ -22,4 +22,5 @@
|
|||
|
||||
|
||||
void UpdateVanillaTransparency();
|
||||
bool UseVanillaTransparency();
|
||||
bool UseVanillaTransparency();
|
||||
extern bool r_UseVanillaTransparency;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue