mirror of
https://github.com/yawut/SDL.git
synced 2026-09-14 12:06:26 -05:00
Whoops, actually set the SDL error, don't just print the error.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user