diff options
author | Sam Lantinga <slouken@libsdl.org> | 2009-12-15 08:11:06 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2009-12-15 08:11:06 +0000 |
commit | 1a1477bcc60f8492e69abf37a2cb8ce0ab434636 (patch) | |
tree | 760702c303474e216536e7bc3773dc9a04e0838c /src/video/win32 | |
parent | df50338fdab3d82a4cbb2f63140e23d5127a91a4 (diff) |
Fixed bug #906
Added better error reporting for OpenGL context creation failing.
Diffstat (limited to 'src/video/win32')
-rw-r--r-- | src/video/win32/SDL_win32events.c | 2 | ||||
-rw-r--r-- | src/video/win32/SDL_win32opengl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video/win32/SDL_win32events.c b/src/video/win32/SDL_win32events.c index 682832e054..f25f339588 100644 --- a/src/video/win32/SDL_win32events.c +++ b/src/video/win32/SDL_win32events.c @@ -732,7 +732,7 @@ WIN_SetError(const char *prefix) 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 --git a/src/video/win32/SDL_win32opengl.c b/src/video/win32/SDL_win32opengl.c index 47f09d9ab5..d3abd00cbe 100644 --- a/src/video/win32/SDL_win32opengl.c +++ b/src/video/win32/SDL_win32opengl.c @@ -536,7 +536,7 @@ WIN_GL_CreateContext(_THIS, SDL_Window * window) } if (!context) { - SDL_SetError("Could not create GL context"); + WIN_SetError("Could not create GL context"); return NULL; } |