mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
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:
parent
d39708f043
commit
49249854c3
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue