|
From: Elias N. <eli...@us...> - 2005-01-14 09:25:10
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13913/src/native/win32 Modified Files: org_lwjgl_opengl_Display.c Log Message: Don't make context current in DisplayImplementation.createWindow(), but let Display do it explicitly to increase native call granularity Index: org_lwjgl_opengl_Display.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_opengl_Display.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_Display.c 9 Dec 2004 15:36:13 -0000 1.1 +++ org_lwjgl_opengl_Display.c 14 Jan 2005 09:24:59 -0000 1.2 @@ -662,12 +662,6 @@ return; } - result = wglMakeCurrent(display_hdc, display_hglrc); - if (!result) { - throwException(env, "Could not bind context to window"); - closeWindow(display_hwnd, display_hdc); - return; - } extgl_InitWGL(env); ShowWindow(display_hwnd, SW_SHOW); UpdateWindow(display_hwnd); |