diff options
author | /dev/humancontroller <devhc@example.com> | 2014-07-13 18:05:31 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:11 +0100 |
commit | 8391e8997fad1bdbd6b9d189c6afca22d3e4324c (patch) | |
tree | b1e2f117c23a5a7ef7eb97274dc96e1823a9c9ae /src/renderergl1 | |
parent | 59875f1378dca6605cd0426eff89f850d8743c92 (diff) |
request a visual with at least 1 alpha bit: add r_alphabits, defaulting to 1
this is required for binary shaders
Diffstat (limited to 'src/renderergl1')
-rw-r--r-- | src/renderergl1/tr_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/renderergl1/tr_init.c b/src/renderergl1/tr_init.c index 0a9d75b9..3e815b6a 100644 --- a/src/renderergl1/tr_init.c +++ b/src/renderergl1/tr_init.c @@ -99,6 +99,7 @@ cvar_t *r_logFile; cvar_t *r_stencilbits; cvar_t *r_depthbits; cvar_t *r_colorbits; +cvar_t *r_alphabits; cvar_t *r_primitives; cvar_t *r_texturebits; cvar_t *r_ext_multisample; @@ -952,6 +953,7 @@ void R_Register( void ) r_detailTextures = ri.Cvar_Get( "r_detailtextures", "1", CVAR_ARCHIVE | CVAR_LATCH ); r_texturebits = ri.Cvar_Get( "r_texturebits", "0", CVAR_ARCHIVE | CVAR_LATCH ); r_colorbits = ri.Cvar_Get( "r_colorbits", "0", CVAR_ARCHIVE | CVAR_LATCH ); + r_alphabits = ri.Cvar_Get( "r_alphabits", "1", CVAR_ARCHIVE | CVAR_LATCH ); r_stencilbits = ri.Cvar_Get( "r_stencilbits", "8", CVAR_ARCHIVE | CVAR_LATCH ); r_depthbits = ri.Cvar_Get( "r_depthbits", "0", CVAR_ARCHIVE | CVAR_LATCH ); r_ext_multisample = ri.Cvar_Get( "r_ext_multisample", "0", CVAR_ARCHIVE | CVAR_LATCH ); |