From 5f4d4e533f38fb2889d5fd9860162bad2bc96e19 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sat, 6 Aug 2016 19:21:34 +0200 Subject: [PATCH] Apply gl_overbrightbits only to full lightmap chains. I think / guess / *fingers crossed* that this fixes the different brightness levels between normal and multitexturing mode reported in #147. --- src/client/refresh/r_surf.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/client/refresh/r_surf.c b/src/client/refresh/r_surf.c index c1f2599d..ef283d8e 100644 --- a/src/client/refresh/r_surf.c +++ b/src/client/refresh/r_surf.c @@ -195,13 +195,6 @@ R_DrawGLPolyChain(glpoly_t *p, float soffset, float toffset) return; } - if (gl_overbrightbits->value) - { - R_TexEnv(GL_COMBINE_EXT); - R_SelectTexture(GL_TEXTURE1); - glTexEnvi(GL_TEXTURE_ENV, GL_RGB_SCALE_EXT, gl_overbrightbits->value); - } - glEnableClientState( GL_VERTEX_ARRAY ); glEnableClientState( GL_TEXTURE_COORD_ARRAY );