diff options
author | Kenneth Russel <[email protected]> | 2001-10-04 06:26:39 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2001-10-04 06:26:39 +0000 |
commit | 1f5dea284e7202cce1fe1bcde5138ba5e5a7b4bd (patch) | |
tree | 85b2c7b16a1dee5ab40ea5b405734a4b02a0a778 /CNativeCode | |
parent | 770388782ee969cfc6774cefaa4c2025213d6f0f (diff) |
Fixed offscreen bug pointed out by [email protected]
Diffstat (limited to 'CNativeCode')
-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; } |