From: havoc Date: Sun, 29 Jul 2018 23:04:41 +0000 (+0000) Subject: Remove gl_dither cvar, it isn't supported in GL3.2 Core Profile. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1eb6c9f7bf5f6966b47e25284e1fe3a60751107b;p=xonotic%2Fdarkplaces.git Remove gl_dither cvar, it isn't supported in GL3.2 Core Profile. Remove unused gl_fbo cvar. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12440 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_screen.c b/cl_screen.c index 197e632e..36eccda6 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -2792,15 +2792,6 @@ void CL_UpdateScreen(void) { CHECKGLERROR qglDrawBuffer(GL_BACK);CHECKGLERROR - // set dithering mode - if (gl_dither.integer) - { - qglEnable(GL_DITHER);CHECKGLERROR - } - else - { - qglDisable(GL_DITHER);CHECKGLERROR - } } #endif diff --git a/gl_backend.c b/gl_backend.c index 60487161..73c01102 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -82,8 +82,6 @@ cvar_t r_render = {0, "r_render", "1", "enables rendering 3D views (you want thi cvar_t r_renderview = {0, "r_renderview", "1", "enables rendering 3D views (you want this on!)"}; cvar_t r_waterwarp = {CVAR_SAVE, "r_waterwarp", "1", "warp view while underwater"}; cvar_t gl_polyblend = {CVAR_SAVE, "gl_polyblend", "1", "tints view while underwater, hurt, etc"}; -cvar_t gl_dither = {CVAR_SAVE, "gl_dither", "1", "enables OpenGL dithering (16bit looks bad with this off)"}; -cvar_t gl_fbo = {CVAR_SAVE, "gl_fbo", "1", "make use of GL_ARB_framebuffer_object extension to enable shadowmaps and other features using pixel formats different from the framebuffer"}; cvar_t v_flipped = {0, "v_flipped", "0", "mirror the screen (poor man's left handed mode)"}; qboolean v_flipped_state = false; diff --git a/render.h b/render.h index b22cae48..9df7309d 100644 --- a/render.h +++ b/render.h @@ -312,7 +312,6 @@ extern cvar_t r_glsl_offsetmapping_lod_distance; extern cvar_t r_glsl_deluxemapping; extern cvar_t gl_polyblend; -extern cvar_t gl_dither; extern cvar_t cl_deathfade;