From cffd12690851e3d5c43e60698eac4222830b7df0 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 27 Feb 2010 21:11:04 +0000 Subject: [PATCH] fix bug that prevented reflection cubemaps from working with Cg shaders git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10031 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 8b75a1c7..28fff13a 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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" -- 2.39.2