]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix GLSL compile error on cubemap lights with deferred rendering
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Jan 2010 23:02:37 +0000 (23:02 +0000)
committerRudolf Polzer <divVerent@alientrap.org>
Tue, 5 Jan 2010 14:31:24 +0000 (15:31 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9779 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=dc94032bc95888a1bd92180885dadde40ef8ae95

gl_rmain.c

index 32b747d4c918329933e1d2a0cadd4efb1be56c2f..a797e3af73cf79f0c0d12607cc7b42d83e5504d7 100644 (file)
@@ -2588,8 +2588,8 @@ const char *builtincgshaderstring =
 "\n"
 "# ifdef USECUBEFILTER\n"
 "      float3 cubecolor = texCUBE(Texture_Cube, CubeVector).rgb;\n"
-"      gl_FragData0 *= cubecolor;\n"
-"      gl_FragData1 *= cubecolor;\n"
+"      gl_FragData0.rgb *= cubecolor;\n"
+"      gl_FragData1.rgb *= cubecolor;\n"
 "# endif\n"
 "}\n"
 "#endif // FRAGMENT_SHADER\n"