-
Notifications
You must be signed in to change notification settings - Fork 459
Open
Description
// Checks if the different Shaders have compiled properly
void Shader::compileErrors(unsigned int shader /* Sidenote: shouldn't this be GLuint for maximum generality? */, const char* type)
{
// ...
if (type != "PROGRAM") // This is never true because const char* is not std::string and this simply compares the memory addresses. If you want to check to see if the values aren't the same use strcmp(type, program) != 0 in <cstring>
{
// ...
}
else
{
// ...
}
}
Metadata
Metadata
Assignees
Labels
No labels