aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xCNativeCode/OpenGL_Win32_jawt.c6
1 files changed, 5 insertions, 1 deletions
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;
}