From: Maik Merten <maikmerten@googlemail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10932
d7cf8633-e32d-0410-b094-
e92efae38249
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
"#define highp\n"
"#endif\n"
"\n"
-"#if __VERSION__ >= 130\n"
+"#ifdef GLSL130\n"
"# ifdef VERTEX_SHADER\n"
"# define dp_varying out\n"
"# define dp_attribute in\n"