]> git.rm.cloudns.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)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 31 Oct 2011 08:01:45 +0000 (09:01 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11495 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=9d9ed57e5aa682c499f1a8dcbc5b9774432302fe

gl_rmain.c

index 7fc61ce3f6c0fc4a7c8fc1403b1f8520cec03fb6..459918129b86ea9377899e72059e895fd5467435 100644 (file)
@@ -9822,6 +9822,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