From ea377b80c57859a7c58713613608de0ccff596dd Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 8 Jan 2012 20:38:21 +0900 Subject: [PATCH] Remove some redundate statements. --- libs/video/renderer/gl/gl_rsurf.c | 2 -- libs/video/renderer/glsl/glsl_alias.c | 2 -- 2 files changed, 4 deletions(-) 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); }