summaryrefslogtreecommitdiff
path: root/src/renderergl1
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2013-01-17 13:31:30 +0000
committerTim Angus <tim@ngus.net>2014-08-28 10:58:28 +0100
commitaf45b9f4614d7018146e68832de3bccb1c73f7e7 (patch)
treef563cc4f23e453d7d1fa13e6c71ffcb7e8ec7bcd /src/renderergl1
parent7426441a5bc9c4eaf28a7f64a22df8bdaa71162c (diff)
Use SDL 2 instead of SDL 1.2
Diffstat (limited to 'src/renderergl1')
-rw-r--r--src/renderergl1/tr_init.c4
-rw-r--r--src/renderergl1/tr_local.h11
2 files changed, 15 insertions, 0 deletions
diff --git a/src/renderergl1/tr_init.c b/src/renderergl1/tr_init.c
index 8d8b1f5e..fbaa1c37 100644
--- a/src/renderergl1/tr_init.c
+++ b/src/renderergl1/tr_init.c
@@ -46,6 +46,8 @@ cvar_t *r_ignoreFastPath;
cvar_t *r_verbose;
cvar_t *r_ignore;
+cvar_t *r_displayRefresh;
+
cvar_t *r_detailTextures;
cvar_t *r_znear;
@@ -973,6 +975,8 @@ void R_Register( void )
//
// temporary latched variables that can only change over a restart
//
+ r_displayRefresh = ri.Cvar_Get( "r_displayRefresh", "0", CVAR_LATCH );
+ ri.Cvar_CheckRange( r_displayRefresh, 0, 200, qtrue );
r_fullbright = ri.Cvar_Get ("r_fullbright", "0", CVAR_LATCH|CVAR_CHEAT );
r_mapOverBrightBits = ri.Cvar_Get ("r_mapOverBrightBits", "2", CVAR_LATCH );
r_intensity = ri.Cvar_Get ("r_intensity", "1", CVAR_LATCH );
diff --git a/src/renderergl1/tr_local.h b/src/renderergl1/tr_local.h
index 3eabb7a2..cbca2cb4 100644
--- a/src/renderergl1/tr_local.h
+++ b/src/renderergl1/tr_local.h
@@ -1007,6 +1007,17 @@ extern cvar_t *r_nocurves;
extern cvar_t *r_showcluster;
extern cvar_t *r_gamma;
+extern cvar_t *r_displayRefresh; // optional display refresh option
+extern cvar_t *r_ignorehwgamma; // overrides hardware gamma capabilities
+
+extern cvar_t *r_allowExtensions; // global enable/disable of OpenGL extensions
+extern cvar_t *r_ext_compressed_textures; // these control use of specific extensions
+extern cvar_t *r_ext_multitexture;
+extern cvar_t *r_ext_compiled_vertex_array;
+extern cvar_t *r_ext_texture_env_add;
+
+extern cvar_t *r_ext_texture_filter_anisotropic;
+extern cvar_t *r_ext_max_anisotropy;
extern cvar_t *r_nobind; // turns off binding to appropriate textures
extern cvar_t *r_singleShader; // make most world faces use default shader