changeset 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 f7541260e89c
children cd763d104465
files src/video/SDL_renderer_gl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c	Sat Nov 21 08:42:42 2009 +0000
+++ b/src/video/SDL_renderer_gl.c	Sun Nov 22 06:34:45 2009 +0000
@@ -492,7 +492,7 @@
     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);
 }