aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/OpenGL_Win32_jawt.c
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2002-03-30 15:47:27 +0000
committerKenneth Russel <[email protected]>2002-03-30 15:47:27 +0000
commit8d696e601530581511c1121e2cff45ee05b213f0 (patch)
tree94693f68cf091016f019bb7e5bf9a8615c528dc4 /CNativeCode/OpenGL_Win32_jawt.c
parent656e2e92c3ab71ec5267ab3ae71063251f21690e (diff)
gljDestroyNative fix from [email protected]
Diffstat (limited to 'CNativeCode/OpenGL_Win32_jawt.c')
-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);
}