From 06a04df72430e5ed6487623e90d7a273bfdca2bc Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 6 Mar 2005 11:42:40 +0000 Subject: [PATCH] lazy variable declarations strike again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5033 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index 31d4a4f8..98b23f0a 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -1748,6 +1748,11 @@ void R_Q3BSP_DrawFace_TransparentCallback(const void *voident, int facenumber) void R_Q3BSP_DrawFaceList(entity_render_t *ent, q3mtexture_t *t, int texturenumfaces, q3msurface_t **texturefacelist) { int i, texturefaceindex; + qboolean dolightmap; + qboolean dobase; + qboolean doambient; + qboolean doglow; + qboolean dofog; rmeshstate_t m; if (!texturenumfaces) return; @@ -1844,11 +1849,11 @@ void R_Q3BSP_DrawFaceList(entity_render_t *ent, q3mtexture_t *t, int texturenumf return; } // anything else is a typical wall, lightmap * texture + glow - qboolean dolightmap = (ent->flags & RENDER_LIGHT); - qboolean dobase = true; - qboolean doambient = r_ambient.value > 0; - qboolean doglow = t->skin.glow != NULL; - qboolean dofog = fogenabled; + dolightmap = (ent->flags & RENDER_LIGHT); + dobase = true; + doambient = r_ambient.value > 0; + doglow = t->skin.glow != NULL; + dofog = fogenabled; if (t->textureflags & Q3TEXTUREFLAG_TWOSIDED) qglDisable(GL_CULL_FACE); if (!dolightmap && dobase) -- 2.39.2