From fc84db09a0c4bf97a72245c7df59661d43ad4a45 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 4 Apr 2002 04:03:59 +0000 Subject: correcting the wglDeleteContext sematics .. here also .. --- CNativeCode/OpenGL_Win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CNativeCode/OpenGL_Win32.c') 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); } -- cgit v1.2.3