diff --git a/libs/video/renderer/gl/gl_rsurf.c b/libs/video/renderer/gl/gl_rsurf.c index fba02f8bf..377a721b1 100644 --- a/libs/video/renderer/gl/gl_rsurf.c +++ b/libs/video/renderer/gl/gl_rsurf.c @@ -562,8 +562,6 @@ R_DrawBrushModel (entity_t *e) modelorg[2] = DotProduct (temp, e->transform + 8); } - psurf = &model->surfaces[model->firstmodelsurface]; - // calculate dynamic lighting for bmodel if it's not an instanced model if (model->firstmodelsurface != 0 && r_dlight_lightmap->int_val) { vec3_t lightorigin; diff --git a/libs/video/renderer/glsl/glsl_alias.c b/libs/video/renderer/glsl/glsl_alias.c index 846a75455..361f6849a 100644 --- a/libs/video/renderer/glsl/glsl_alias.c +++ b/libs/video/renderer/glsl/glsl_alias.c @@ -320,6 +320,4 @@ R_AliasEnd (void) qfglDisable (GL_TEXTURE_2D); qfglActiveTexture (GL_TEXTURE0 + 2); qfglDisable (GL_TEXTURE_2D); - qfglActiveTexture (GL_TEXTURE0 + 3); - qfglDisable (GL_TEXTURE_2D); }