OpenGL/GLSL checking if shader compiled fine on intel cards
Posted
by clamp
on Stack Overflow
See other posts from Stack Overflow
or by clamp
Published on 2010-04-18T17:40:15Z
Indexed on
2010/04/18
17:43 UTC
Read the original article
Hit count: 349
hello, i am using this code to check if my glsl shader compiled fine.
glGetObjectParameterivARB(obj, GL_OBJECT_INFO_LOG_LENGTH_ARB, &infologLength);
if (infologLength > 1)
{
int charsWritten = 0;
char * const infoLog = new char[infologLength];
glGetInfoLogARB(obj, infologLength, &charsWritten, infoLog);
tError(infoLog, false);
delete infoLog;
}
}
the length of the returned string is empty on nvidia and ATI cards, but on intel cards this one returns the string "no errors."
now what is the best way to find out, if there are really no errors? should i just check for this string? or is there a convention what this function glGetInfoLogARB should return?
© Stack Overflow or respective owner