git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4993 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
9000f497ec
commit
e03a8d9d41
1 changed files with 2 additions and 0 deletions
|
@ -1879,12 +1879,14 @@ static GLhandleARB GLSlang_CreateShader (const char *name, int ver, const char *
|
||||||
prstrings[strings] = "#define VERTEX_SHADER\n";
|
prstrings[strings] = "#define VERTEX_SHADER\n";
|
||||||
length[strings] = strlen(prstrings[strings]);
|
length[strings] = strlen(prstrings[strings]);
|
||||||
strings++;
|
strings++;
|
||||||
|
#ifdef RTLIGHTS
|
||||||
if (!r_shadow_shadowmapping.ival && ver >= 120)
|
if (!r_shadow_shadowmapping.ival && ver >= 120)
|
||||||
{
|
{
|
||||||
prstrings[strings] = "invariant gl_Position;\n";
|
prstrings[strings] = "invariant gl_Position;\n";
|
||||||
length[strings] = strlen(prstrings[strings]);
|
length[strings] = strlen(prstrings[strings]);
|
||||||
strings++;
|
strings++;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (gl_config.gles)
|
if (gl_config.gles)
|
||||||
{
|
{
|
||||||
prstrings[strings] =
|
prstrings[strings] =
|
||||||
|
|
Loading…
Reference in a new issue