diff test/testgl2.c @ 2178:114a541cfae2

Creating a context makes it current, per the documentation. Applied a variant of the multi-card OpenGL fix from SDL 1.2
author Sam Lantinga <slouken@libsdl.org>
date Thu, 12 Jul 2007 06:31:36 +0000
parents 8055185ae4ed
children bb67fd5ccfdb
line wrap: on
line diff
--- a/test/testgl2.c	Thu Jul 12 05:32:07 2007 +0000
+++ b/test/testgl2.c	Thu Jul 12 06:31:36 2007 +0000
@@ -225,10 +225,6 @@
         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);