aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2002-04-04 04:03:59 +0000
committerSven Gothel <[email protected]>2002-04-04 04:03:59 +0000
commitfc84db09a0c4bf97a72245c7df59661d43ad4a45 (patch)
tree0d527bafdd2e2a0b7a586bce0987ed2af1dcd5e1
parent7781c906ff15744fdf58ea4c9856fd3241d7e4e2 (diff)
correcting the wglDeleteContext sematics .. here also ..
-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);
}