Creating a context makes it current, per the documentation.

Applied a variant of the multi-card OpenGL fix from SDL 1.2
This commit is contained in:
Sam Lantinga
2007-07-12 06:31:36 +00:00
parent 55309a86d0
commit 45339ba922
4 changed files with 70 additions and 41 deletions

View File

@@ -225,10 +225,6 @@ main(int argc, char *argv[])
fprintf(stderr, "SDL_GL_CreateContext(): %s\n", SDL_GetError());
quit(2);
}
if (SDL_GL_MakeCurrent(state->windows[0], context) < 0) {
fprintf(stderr, "SDL_GL_MakeCurrent(): %s\n", SDL_GetError());
quit(2);
}
if (state->render_flags & SDL_RENDERER_PRESENTVSYNC) {
SDL_GL_SetSwapInterval(1);