]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
UNMERGE
authortomaz tomaz@d7cf8633-e32d-0410-b094-e92efae38249 <>
Tue, 14 Sep 2010 20:49:41 +0000 (20:49 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 24 Sep 2010 20:00:17 +0000 (22:00 +0200)
Set r_shadow_shadowmap2dcolortexture as first rendertarget when doing shadowmaps, sadly this didn't fix the shadowmaps but it at least fixed the white sky.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10462 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::unmerge=24eb9d93a8cdc6a8c8bac7f821a40eea5a262387

r_shadow.c

index 706c6410df1362306a8075a2fb96a1e7ce21f3d0..899c14544fff79a150db4d3fe26c6f985fb42be9 100644 (file)
@@ -4453,7 +4453,7 @@ void R_DrawModelShadowMaps(void)
 
        VectorMA(shadoworigin, (1.0f - fabs(dot1)) * radius, shadowforward, shadoworigin);
 
-       R_Mesh_SetRenderTargets(fbo, r_shadow_shadowmap2dtexture, r_shadow_shadowmap2dcolortexture, NULL, NULL, NULL);
+       R_Mesh_SetRenderTargets(fbo, r_shadow_shadowmap2dtexture, NULL, NULL, NULL, NULL);
        R_SetupShader_DepthOrShadow();
        GL_PolygonOffset(r_shadow_shadowmapping_polygonfactor.value, r_shadow_shadowmapping_polygonoffset.value);
        GL_DepthMask(true);