From 0630f6769d7c887450ef3a795e3afe9e217c0151 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 8 Nov 2011 13:25:56 +0000 Subject: [PATCH] fix compile error regarding vid_sRGB declaration git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11536 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 2 -- model_brush.c | 2 -- vid.h | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index f392c5f8..4a9c0a84 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -31,8 +31,6 @@ cvar_t r_lockvisibility = {0, "r_lockvisibility", "0", "disables visibility upda cvar_t r_useportalculling = {0, "r_useportalculling", "2", "improve framerate with r_novis 1 by using portal culling - still not as good as compiled visibility data in the map, but it helps (a value of 2 forces use of this even with vis data, which improves framerates in maps without too much complexity, but hurts in extremely complex maps, which is why 2 is not the default mode)"}; cvar_t r_usesurfaceculling = {0, "r_usesurfaceculling", "1", "skip off-screen surfaces (1 = cull surfaces if the map is likely to benefit, 2 = always cull surfaces)"}; cvar_t r_q3bsp_renderskydepth = {0, "r_q3bsp_renderskydepth", "0", "draws sky depth masking in q3 maps (as in q1 maps), this means for example that sky polygons can hide other things"}; -extern cvar_t vid_sRGB; -extern cvar_t vid_sRGB_fallback; /* =============== diff --git a/model_brush.c b/model_brush.c index 66128d9a..eca65464 100644 --- a/model_brush.c +++ b/model_brush.c @@ -58,8 +58,6 @@ cvar_t mod_q3shader_force_addalpha = {0, "mod_q3shader_force_addalpha", "0", "tr cvar_t mod_q1bsp_polygoncollisions = {0, "mod_q1bsp_polygoncollisions", "0", "disables use of precomputed cliphulls and instead collides with polygons (uses Bounding Interval Hierarchy optimizations)"}; cvar_t mod_collision_bih = {0, "mod_collision_bih", "1", "enables use of generated Bounding Interval Hierarchy tree instead of compiled bsp tree in collision code"}; cvar_t mod_recalculatenodeboxes = {0, "mod_recalculatenodeboxes", "1", "enables use of generated node bounding boxes based on BSP tree portal reconstruction, rather than the node boxes supplied by the map compiler"}; -extern cvar_t vid_sRGB; -extern cvar_t vid_sRGB_fallback; static texture_t mod_q1bsp_texture_solid; static texture_t mod_q1bsp_texture_sky; diff --git a/vid.h b/vid.h index bceb210b..21b8266e 100644 --- a/vid.h +++ b/vid.h @@ -193,6 +193,8 @@ extern cvar_t vid_stick_mouse; extern cvar_t vid_resizable; extern cvar_t vid_minwidth; extern cvar_t vid_minheight; +extern cvar_t vid_sRGB; +extern cvar_t vid_sRGB_fallback; extern cvar_t gl_finish; -- 2.39.2