From 8391e8997fad1bdbd6b9d189c6afca22d3e4324c Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sun, 13 Jul 2014 18:05:31 +0200 Subject: request a visual with at least 1 alpha bit: add r_alphabits, defaulting to 1 this is required for binary shaders --- src/renderergl2/tr_init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/renderergl2') diff --git a/src/renderergl2/tr_init.c b/src/renderergl2/tr_init.c index 4f0a53f4..1c7391e3 100644 --- a/src/renderergl2/tr_init.c +++ b/src/renderergl2/tr_init.c @@ -175,6 +175,7 @@ cvar_t *r_logFile; cvar_t *r_stencilbits; cvar_t *r_depthbits; cvar_t *r_colorbits; +cvar_t *r_alphabits; cvar_t *r_texturebits; cvar_t *r_ext_multisample; @@ -1111,6 +1112,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 ); -- cgit