From: havoc Date: Sun, 6 May 2007 12:23:19 +0000 (+0000) Subject: made r_depthfirst a saved cvar X-Git-Tag: xonotic-v0.1.0preview~3211 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=15cb10eccdc4ef5a61f3463e6dde46a4ee59f2c6;p=xonotic%2Fdarkplaces.git made r_depthfirst a saved cvar git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7236 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index c01130cf..cda8dfcf 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -34,7 +34,7 @@ r_refdef_t r_refdef; r_view_t r_view; r_viewcache_t r_viewcache; -cvar_t r_depthfirst = {0, "r_depthfirst", "1", "renders a depth-only version of the scene before normal rendering begins to eliminate overdraw, values: 0 = off, 1 = world depth, 2 = world and model depth"}; +cvar_t r_depthfirst = {CVAR_SAVE, "r_depthfirst", "1", "renders a depth-only version of the scene before normal rendering begins to eliminate overdraw, values: 0 = off, 1 = world depth, 2 = world and model depth"}; cvar_t r_nearclip = {0, "r_nearclip", "1", "distance from camera of nearclip plane" }; cvar_t r_showbboxes = {0, "r_showbboxes", "0", "shows bounding boxes of server entities, value controls opacity scaling (1 = 10%, 10 = 100%)"}; cvar_t r_showsurfaces = {0, "r_showsurfaces", "0", "1 shows surfaces as different colors, or a value of 2 shows triangle draw order (for analyzing whether meshes are optimized for vertex cache)"};