From 1f5dea284e7202cce1fe1bcde5138ba5e5a7b4bd Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 4 Oct 2001 06:26:39 +0000 Subject: Fixed offscreen bug pointed out by wjkimme@ThoughtWorks.com --- CNativeCode/OpenGL_Win32_jawt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'CNativeCode/OpenGL_Win32_jawt.c') diff --git a/CNativeCode/OpenGL_Win32_jawt.c b/CNativeCode/OpenGL_Win32_jawt.c index 2f69ad7..5c5359f 100755 --- a/CNativeCode/OpenGL_Win32_jawt.c +++ b/CNativeCode/OpenGL_Win32_jawt.c @@ -426,6 +426,10 @@ Java_gl4java_GLContext_openOpenGLNative( JNIEnv *env, jobject obj, return JNI_FALSE; } + if (joffScreenRenderer) { + pData->dsi_win = theWindow; + } + /* fetch the states of doubleBuffer and stereo */ (void) PixelFormatDescriptorFromDc( theWindow, &pfd); @@ -465,7 +469,7 @@ Java_gl4java_GLContext_openOpenGLNative( JNIEnv *env, jobject obj, fprintf(stderr, "go and set gc : %d, 0x%X\n", (int)gc, (int)gc); } - + return ret; } -- cgit v1.2.3