Creating a context makes it current, per the documentation.
Applied a variant of the multi-card OpenGL fix from SDL 1.2 --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402497
This commit is contained in:
parent
463ba0e0a6
commit
a3245a4e7c
4 changed files with 70 additions and 41 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue