]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - shader_glsl.h
Fix GLSL shader to only specify invariant gl_Position on the vertex shader, not the...
[xonotic/darkplaces.git] / shader_glsl.h
index f9be074eff2c1031bcaa8483187d5b58171c45cf..a69dbbc520163e221eebf409ad95a20900ad3134 100644 (file)
@@ -37,7 +37,7 @@
 "# endif\n",
 "#endif\n",
 "\n",
-"#if defined(GLSL120) || defined(GLSL130) || defined(GLSL140) || defined(GLES)\n"
+"#if (defined(GLSL120) || defined(GLSL130) || defined(GLSL140) || defined(GLES)) && defined(VERTEX_SHADER)\n"
 "invariant gl_Position; // fix for lighting polygons not matching base surface\n",
 "# endif\n",
 "#if defined(GLSL130) || defined(GLSL140)\n",