diff options
author | Chien Yang <[email protected]> | 2007-04-30 21:51:21 +0000 |
---|---|---|
committer | Chien Yang <[email protected]> | 2007-04-30 21:51:21 +0000 |
commit | 6e5336b338f378139803076ca7c10f37a7ff4cd8 (patch) | |
tree | bb5ed2cde8c2d3628fba90f3f0d5e30d36e9c43c /src/native/ogl/Canvas3D.c | |
parent | fa4a7c3930e36c5651aab9608c53daab5bd2e32c (diff) |
Fix to Issse 486 : Java 3D hangs on some Windows Vista systems
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@836 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/native/ogl/Canvas3D.c')
-rw-r--r-- | src/native/ogl/Canvas3D.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/native/ogl/Canvas3D.c b/src/native/ogl/Canvas3D.c index fd0d7b9..1e053b6 100644 --- a/src/native/ogl/Canvas3D.c +++ b/src/native/ogl/Canvas3D.c @@ -2311,8 +2311,8 @@ jlong JNICALL Java_javax_media_j3d_NativePipeline_createOffScreenBuffer( if (!wglMakeCurrent(hdc, hrc)) { printErrorMessage("In Canvas3D : Failed in wglMakeCurrent"); - ReleaseDC(hwnd, hdc); wglDeleteContext(hrc); + ReleaseDC(hwnd, hdc); DestroyWindow(hwnd); UnregisterClass(szAppName, (HINSTANCE)NULL); return 0; @@ -2329,8 +2329,8 @@ jlong JNICALL Java_javax_media_j3d_NativePipeline_createOffScreenBuffer( width, height, piAttrs); if(hpbuf == NULL) { printErrorMessage("In Canvas3D : wglCreatePbufferARB FAIL."); - ReleaseDC(hwnd, hdc); wglDeleteContext(hrc); + ReleaseDC(hwnd, hdc); DestroyWindow(hwnd); UnregisterClass(szAppName, (HINSTANCE)NULL); return 0; @@ -2340,8 +2340,8 @@ jlong JNICALL Java_javax_media_j3d_NativePipeline_createOffScreenBuffer( if(hpbufdc == NULL) { printErrorMessage("In Canvas3D : Can't get pbuffer's device context."); - ReleaseDC(hwnd, hdc); wglDeleteContext(hrc); + ReleaseDC(hwnd, hdc); DestroyWindow(hwnd); UnregisterClass(szAppName, (HINSTANCE)NULL); return 0; @@ -2354,8 +2354,8 @@ jlong JNICALL Java_javax_media_j3d_NativePipeline_createOffScreenBuffer( */ /* Destroy all dummy objects */ - ReleaseDC(hwnd, hdc); wglDeleteContext(hrc); + ReleaseDC(hwnd, hdc); DestroyWindow(hwnd); UnregisterClass(szAppName, (HINSTANCE)NULL); @@ -2409,8 +2409,8 @@ jlong JNICALL Java_javax_media_j3d_NativePipeline_createOffScreenBuffer( /* Choosing and setting of pixel format is done in createContext */ /* Destroy all dummy objects and fall BitMap */ - ReleaseDC(hwnd, hdc); wglDeleteContext(hrc); + ReleaseDC(hwnd, hdc); DestroyWindow(hwnd); UnregisterClass(szAppName, (HINSTANCE)NULL); |