Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug #906
Browse files Browse the repository at this point in the history
Added better error reporting for OpenGL context creation failing.
  • Loading branch information
slouken committed Dec 15, 2009
1 parent aed543c commit bf91e32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/video/win32/SDL_win32events.c
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/video/win32/SDL_win32opengl.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit bf91e32

Please sign in to comment.