Whoops, actually set the SDL error, don't just print the error.
authorSam Lantinga <slouken@libsdl.org>
Sun, 22 Nov 2009 06:34:45 +0000
changeset 34796f887204fa7a
parent 3478 f7541260e89c
child 3480 cd763d104465
Whoops, actually set the SDL error, don't just print the error.
src/video/SDL_renderer_gl.c
     1.1 --- a/src/video/SDL_renderer_gl.c	Sat Nov 21 08:42:42 2009 +0000
     1.2 +++ b/src/video/SDL_renderer_gl.c	Sun Nov 22 06:34:45 2009 +0000
     1.3 @@ -492,7 +492,7 @@
     1.4      const GLubyte *errstr;
     1.5      data->glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &pos);
     1.6      errstr = data->glGetString(GL_PROGRAM_ERROR_STRING_ARB);
     1.7 -    printf("%s: shader compile error at position %d: %s",
     1.8 +    SDL_SetError("%s: shader compile error at position %d: %s",
     1.9             prefix, (int) pos, (const char *) errstr);
    1.10  }
    1.11