- fixed incorrect function call in shader compiler.

This commit is contained in:
Christoph Oelckers 2014-08-03 18:14:19 +02:00
parent b3e0d93385
commit 09a68e8c93

View file

@ -163,7 +163,7 @@ bool FShader::Load(const char * name, const char * vert_prog_lump, const char *
error << "Linking:\n" << buffer << "\n";
}
int linked;
glGetShaderiv(hShader, GL_LINK_STATUS, &linked);
glGetProgramiv(hShader, GL_LINK_STATUS, &linked);
if (linked == 0)
{
// only print message if there's an error.