From: cloudwalk Date: Tue, 2 Jun 2020 14:03:06 +0000 (+0000) Subject: Fix compiler warning X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f2c46781fa71844bccd211b9ec6b9a532bdcbf4d;p=xonotic%2Fdarkplaces.git Fix compiler warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12623 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index be5fea34..cd22d261 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -8664,6 +8664,9 @@ void RSurf_SetupDepthAndCulling(void) static void R_DrawTextureSurfaceList_Sky(int texturenumsurfaces, const msurface_t **texturesurfacelist) { int j; + const float *v; + float p[3], mins[3], maxs[3]; + int scissor[4]; // transparent sky would be ridiculous if (rsurface.texture->currentmaterialflags & MATERIALFLAGMASK_DEPTHSORTED) return; @@ -8676,10 +8679,6 @@ static void R_DrawTextureSurfaceList_Sky(int texturenumsurfaces, const msurface_ if (r_sky_scissor.integer) { RSurf_PrepareVerticesForBatch(BATCHNEED_ARRAY_VERTEX | BATCHNEED_NOGAPS, texturenumsurfaces, texturesurfacelist); - const float *v; - float p[3]; - float mins[3], maxs[3]; - int scissor[4]; for (j = 0, v = rsurface.batchvertex3f + 3 * rsurface.batchfirstvertex; j < rsurface.batchnumvertices; j++, v += 3) { Matrix4x4_Transform(&rsurface.matrix, v, p);