try to fix a glsl level

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4654 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-05-13 23:17:12 +00:00
parent d39708f043
commit 49249854c3

View file

@ -1466,7 +1466,7 @@ static GLhandleARB GLSlang_CreateShader (const char *name, int ver, const char *
"#define ftetransform() (m_modelviewprojection * vec4(v_position, 1.0))\n"
"uniform mat4 m_modelviewprojection;\n"
"#else\n"
"#define v_position gl_Vertex\n"
"#define v_position gl_Vertex.xyz\n"
"#define ftetransform ftransform\n"
"uniform mat4 m_modelviewprojection;\n"
"#endif\n"
@ -1533,7 +1533,6 @@ static GLhandleARB GLSlang_FinishShader(GLhandleARB shader, const char *name, GL
char str[8192];
qglGetShaderInfoLog_(shader, sizeof(str), NULL, str);
qglDeleteShaderObject_(shader);
if (!silent)
{
switch (shadertype)
@ -1554,6 +1553,7 @@ static GLhandleARB GLSlang_FinishShader(GLhandleARB shader, const char *name, GL
Con_Printf("Shader \"%s\" source:\n%s", name, str);
}
}
qglDeleteShaderObject_(shader);
return 0;
}