comparison src/video/SDL_renderer_gl.c @ 3479:6f887204fa7a

Whoops, actually set the SDL error, don't just print the error.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 22 Nov 2009 06:34:45 +0000
parents 3bd01435287f
children 61d95a87c327
comparison
equal deleted inserted replaced
3478:f7541260e89c 3479:6f887204fa7a
490 { 490 {
491 GLint pos = 0; 491 GLint pos = 0;
492 const GLubyte *errstr; 492 const GLubyte *errstr;
493 data->glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &pos); 493 data->glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &pos);
494 errstr = data->glGetString(GL_PROGRAM_ERROR_STRING_ARB); 494 errstr = data->glGetString(GL_PROGRAM_ERROR_STRING_ARB);
495 printf("%s: shader compile error at position %d: %s", 495 SDL_SetError("%s: shader compile error at position %d: %s",
496 prefix, (int) pos, (const char *) errstr); 496 prefix, (int) pos, (const char *) errstr);
497 } 497 }
498 498
499 static GLuint 499 static GLuint
500 compile_shader(GL_RenderData * data, GLenum shader_type, const char *_code) 500 compile_shader(GL_RenderData * data, GLenum shader_type, const char *_code)