mirror of
https://github.com/yawut/SDL.git
synced 2026-08-24 09:45:09 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user