aboutsummaryrefslogtreecommitdiffstats
path: root/code/renderer
diff options
context:
space:
mode:
authortjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-05-22 03:42:32 +0000
committertjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-05-22 03:42:32 +0000
commit33f302fec8eb69bc45451b1fb376b6a0b8ce0273 (patch)
treec28944c39ce6118f0f9a8ef4c1966cf244aca523 /code/renderer
parentff3eedfc732fec8b16f5ac77b9efe49df870ea13 (diff)
downloadioquake3-aero-33f302fec8eb69bc45451b1fb376b6a0b8ce0273.tar.gz
ioquake3-aero-33f302fec8eb69bc45451b1fb376b6a0b8ce0273.zip
* (bug 2972) add r_swapInterval support to SDL client (if libSDL >= 1.2.10)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1088 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/renderer')
-rw-r--r--code/renderer/tr_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/renderer/tr_init.c b/code/renderer/tr_init.c
index 513df4c..e67e7e4 100644
--- a/code/renderer/tr_init.c
+++ b/code/renderer/tr_init.c
@@ -979,7 +979,12 @@ void R_Register( void )
r_dlightBacks = ri.Cvar_Get( "r_dlightBacks", "1", CVAR_ARCHIVE );
r_finish = ri.Cvar_Get ("r_finish", "0", CVAR_ARCHIVE);
r_textureMode = ri.Cvar_Get( "r_textureMode", "GL_LINEAR_MIPMAP_NEAREST", CVAR_ARCHIVE );
+#if USE_SDL_VIDEO
+ r_swapInterval = ri.Cvar_Get( "r_swapInterval", "0",
+ CVAR_ARCHIVE | CVAR_LATCH );
+#else
r_swapInterval = ri.Cvar_Get( "r_swapInterval", "0", CVAR_ARCHIVE );
+#endif
r_gamma = ri.Cvar_Get( "r_gamma", "1", CVAR_ARCHIVE );
r_facePlaneCull = ri.Cvar_Get ("r_facePlaneCull", "1", CVAR_ARCHIVE );