]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix div0's weird MODE_WATER ModelViewProjectionPosition declarations
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Jan 2008 19:35:24 +0000 (19:35 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Jan 2008 19:35:24 +0000 (19:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8051 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 26999b986d39a665c6e35f6fe3ab6d7f1bc4c9ad..87ceb6567401a48b2431e93c47a6eb160d3d19d4 100644 (file)
@@ -606,15 +606,13 @@ static const char *builtinshaderstring =
 "\n"
 "#ifdef MODE_WATER\n"
 "varying vec4 ModelViewProjectionPosition;\n"
-"#else\n"
+"#endif\n"
 "#ifdef MODE_REFRACTION\n"
 "varying vec4 ModelViewProjectionPosition;\n"
-"#else\n"
+"#endif\n"
 "#ifdef USEREFLECTION\n"
 "varying vec4 ModelViewProjectionPosition;\n"
 "#endif\n"
-"#endif\n"
-"#endif\n"
 "\n"
 "\n"
 "\n"