aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xCNativeCode/OpenGL_Win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/CNativeCode/OpenGL_Win32.c b/CNativeCode/OpenGL_Win32.c
index a4c22b3..b96377d 100755
--- a/CNativeCode/OpenGL_Win32.c
+++ b/CNativeCode/OpenGL_Win32.c
@@ -489,9 +489,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);
}