]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix r_shadow_deferred total breakage from r11146
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 31 Oct 2011 07:01:42 +0000 (07:01 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 31 Oct 2011 07:01:42 +0000 (07:01 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11495 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 16073b0e9603b7e077c53d7db09dd586fec25c63..7a97a5c2dd2e7b341f893f2bf4c767ce56c0602a 100644 (file)
@@ -9765,6 +9765,7 @@ static void R_DrawTextureSurfaceList_GL20(int texturenumsurfaces, const msurface
                GL_DepthMask(true);
                R_SetupShader_Surface(vec3_origin, (rsurface.texture->currentmaterialflags & MATERIALFLAG_MODELLIGHT) != 0, 1, 1, rsurface.texture->specularscale, RSURFPASS_DEFERREDGEOMETRY, texturenumsurfaces, texturesurfacelist, NULL, false);
                RSurf_DrawBatch();
+               return;
        }
 
        // bind lightmap texture