diff options
-rwxr-xr-x | CNativeCode/OpenGL_Win32_jawt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CNativeCode/OpenGL_Win32_jawt.c b/CNativeCode/OpenGL_Win32_jawt.c index 59e80ca..d673319 100755 --- a/CNativeCode/OpenGL_Win32_jawt.c +++ b/CNativeCode/OpenGL_Win32_jawt.c @@ -686,9 +686,9 @@ Java_gl4java_GLContext_gljDestroyNative( JNIEnv *env, jobject obj, } } - if ( ! disp__wglMakeCurrent( NULL, NULL ) ) + if ( ! disp__wglMakeCurrent( thisWin, gc ) ) { - fprintf(stderr, "gljDestroy failed (free)\n"); + fprintf(stderr, "gljDestroy failed (makeCurrent)\n"); fflush(stderr); } |