]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix bug that prevented reflection cubemaps from working with Cg shaders
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Feb 2010 21:11:04 +0000 (21:11 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Feb 2010 21:11:04 +0000 (21:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10031 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 8b75a1c73c31e7d70db4295d544a8bbc4432765c..28fff13a6d25dd51392324cd40e59fc71f8638a6 100644 (file)
@@ -2774,7 +2774,7 @@ const char *builtincgshaderstring =
 "      EyeVectorModelSpaceFogPlaneVertexDist.w = dot(FogPlane, gl_Vertex);\n"
 "#endif\n"
 "\n"
-"#ifdef MODE_LIGHTDIRECTIONMAP_MODELSPACE\n"
+"#if defined(MODE_LIGHTDIRECTIONMAP_MODELSPACE) || defined(USEREFLECTCUBE)\n"
 "      VectorS = gl_MultiTexCoord1.xyz;\n"
 "      VectorT = gl_MultiTexCoord2.xyz;\n"
 "      VectorR = gl_MultiTexCoord3.xyz;\n"