Apply gl_overbrightbits only at lightmaps, not normal textures.

This commit is contained in:
Yamagi Burmeister 2016-08-06 18:11:10 +02:00
parent 38a72e018a
commit dd36eee0f1

View file

@ -72,13 +72,6 @@ R_DrawGLPoly(glpoly_t *p)
v = p->verts[0];
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 );
@ -119,13 +112,6 @@ R_DrawGLFlowingPoly(msurface_t *fa)
}
v = p->verts [ 0 ];
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 );