Whoops, actually set the SDL error, don't just print the error.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404220
This commit is contained in:
parent
21ee95a08f
commit
636dc1e63e
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ set_shader_error(GL_RenderData * data, const char *prefix)
|
|||
const GLubyte *errstr;
|
||||
data->glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &pos);
|
||||
errstr = data->glGetString(GL_PROGRAM_ERROR_STRING_ARB);
|
||||
printf("%s: shader compile error at position %d: %s",
|
||||
SDL_SetError("%s: shader compile error at position %d: %s",
|
||||
prefix, (int) pos, (const char *) errstr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue