diff options
Diffstat (limited to 'CNativeCode/OpenGL_Win32_jawt.c')
-rwxr-xr-x | CNativeCode/OpenGL_Win32_jawt.c | 6 |
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; } |