aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xCNativeCode/OpenGL_Win32_jawt.c4
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);
}