From: tomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Tue, 14 Sep 2010 20:49:41 +0000 (+0000)
Subject: Set r_shadow_shadowmap2dcolortexture as first rendertarget when doing shadowmaps... 
X-Git-Tag: xonotic-v0.1.0preview~230^2~22
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=24eb9d93a8cdc6a8c8bac7f821a40eea5a262387;p=xonotic%2Fdarkplaces.git

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
---

diff --git a/r_shadow.c b/r_shadow.c
index 899c1454..706c6410 100644
--- a/r_shadow.c
+++ b/r_shadow.c
@@ -4453,7 +4453,7 @@ void R_DrawModelShadowMaps(void)
 
 	VectorMA(shadoworigin, (1.0f - fabs(dot1)) * radius, shadowforward, shadoworigin);
 
-	R_Mesh_SetRenderTargets(fbo, r_shadow_shadowmap2dtexture, NULL, NULL, NULL, NULL);
+	R_Mesh_SetRenderTargets(fbo, r_shadow_shadowmap2dtexture, r_shadow_shadowmap2dcolortexture, NULL, NULL, NULL);
 	R_SetupShader_DepthOrShadow();
 	GL_PolygonOffset(r_shadow_shadowmapping_polygonfactor.value, r_shadow_shadowmapping_polygonoffset.value);
 	GL_DepthMask(true);