From fa45b4dc7861e4dbbf586710ad8e5a861a5b430e Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 3 Jul 2004 11:29:44 +0000 Subject: [PATCH] Win32 part of Display/Window merge --- src/native/win32/org_lwjgl_opengl_Display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/win32/org_lwjgl_opengl_Display.cpp b/src/native/win32/org_lwjgl_opengl_Display.cpp index 822a533b..539352fa 100644 --- a/src/native/win32/org_lwjgl_opengl_Display.cpp +++ b/src/native/win32/org_lwjgl_opengl_Display.cpp @@ -683,12 +683,12 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Display_createContext(JNIEnv *env, extgl_Close(); return; } + wglMakeCurrent(hdc, hglrc); // Some crazy strangeness here so we can use ARB_pixel_format to specify the number // of multisamples we want. If the extension is present we'll delete the existing // rendering context and start over, using the ARB extension instead to pick the context. + extgl_InitWGL(env); if (extgl_Extensions.WGL_ARB_pixel_format) { - wglMakeCurrent(hdc, hglrc); - extgl_InitWGL(env); pixel_format_index = findPixelFormatARB(env, pixel_format, NULL, true, true, true); wglMakeCurrent(NULL, NULL); wglDeleteContext(hglrc);