]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix post-process shader using invalid texcoord array
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Mar 2011 15:23:27 +0000 (15:23 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 20 Mar 2011 18:56:58 +0000 (19:56 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10948 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=14095d57b71c30da640b4da5ceab4c9440521e1c

dpsoftrast.c

index 652105bb35319d627d3ab3c11dfed6c4b94090e9..5d173cbb6c2fe423f956103095be17d3c5b754f8 100644 (file)
@@ -3174,7 +3174,7 @@ void DPSOFTRAST_VertexShader_PostProcess(void)
 {
        DPSOFTRAST_Array_TransformProject(DPSOFTRAST_ARRAY_POSITION, DPSOFTRAST_ARRAY_POSITION, dpsoftrast.uniform4f + 4*DPSOFTRAST_UNIFORM_ModelViewProjectionMatrixM1);
        DPSOFTRAST_Array_Load(DPSOFTRAST_ARRAY_TEXCOORD0, DPSOFTRAST_ARRAY_TEXCOORD0);
-       DPSOFTRAST_Array_Load(DPSOFTRAST_ARRAY_TEXCOORD1, DPSOFTRAST_ARRAY_TEXCOORD1);
+       DPSOFTRAST_Array_Load(DPSOFTRAST_ARRAY_TEXCOORD1, DPSOFTRAST_ARRAY_TEXCOORD4);
 }
 
 void DPSOFTRAST_PixelShader_PostProcess(DPSOFTRAST_State_Thread *thread, const DPSOFTRAST_State_Triangle * RESTRICT triangle, const DPSOFTRAST_State_Span * RESTRICT span)