# HG changeset patch # User Sam Lantinga # Date 1260864666 0 # Node ID f43c8f688f7739691024cbed0f2ea999085440a8 # Parent d264d99576c189167964346f0ccecbe35d46d1b5 Fixed bug #906 Added better error reporting for OpenGL context creation failing. diff -r d264d99576c1 -r f43c8f688f77 src/video/win32/SDL_win32events.c --- a/src/video/win32/SDL_win32events.c Tue Dec 15 05:34:58 2009 +0000 +++ b/src/video/win32/SDL_win32events.c Tue Dec 15 08:11:06 2009 +0000 @@ -732,7 +732,7 @@ FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, buffer, SDL_arraysize(buffer), NULL); message = WIN_StringToUTF8(buffer); - SDL_SetError("%s%s%s", prefix ? prefix : "", prefix ? ":" : "", message); + SDL_SetError("%s%s%s", prefix ? prefix : "", prefix ? ": " : "", message); SDL_free(message); } diff -r d264d99576c1 -r f43c8f688f77 src/video/win32/SDL_win32opengl.c --- a/src/video/win32/SDL_win32opengl.c Tue Dec 15 05:34:58 2009 +0000 +++ b/src/video/win32/SDL_win32opengl.c Tue Dec 15 08:11:06 2009 +0000 @@ -536,7 +536,7 @@ } if (!context) { - SDL_SetError("Could not create GL context"); + WIN_SetError("Could not create GL context"); return NULL; }