]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
define GLSL version explicitly to work around a problem with ATI/AMD drivers not...
[xonotic/darkplaces.git] / gl_rmain.c
index 6414369443a71e4ecd3578a4b99851e5d66ed1f0..a2ab80ea1b5b58d3bb2e891f0e47c7e1cfe16d2e 100644 (file)
@@ -989,6 +989,9 @@ static void R_GLSL_CompilePermutation(r_glsl_permutation_t *p, unsigned int mode
                vertstrings_list[vertstrings_count++] = "#version 130\n";
                geomstrings_list[geomstrings_count++] = "#version 130\n";
                fragstrings_list[fragstrings_count++] = "#version 130\n";
+               vertstrings_list[vertstrings_count++] = "#define GLSL130\n";
+               geomstrings_list[geomstrings_count++] = "#define GLSL130\n";
+               fragstrings_list[fragstrings_count++] = "#define GLSL130\n";
        }
 
        // the first pretext is which type of shader to compile as