aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/ogl/OglCheck.c
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2007-04-30 21:51:21 +0000
committerChien Yang <[email protected]>2007-04-30 21:51:21 +0000
commit6e5336b338f378139803076ca7c10f37a7ff4cd8 (patch)
treebb5ed2cde8c2d3628fba90f3f0d5e30d36e9c43c /src/native/ogl/OglCheck.c
parentfa4a7c3930e36c5651aab9608c53daab5bd2e32c (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/OglCheck.c')
-rw-r--r--src/native/ogl/OglCheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/native/ogl/OglCheck.c b/src/native/ogl/OglCheck.c
index 866612c..d72626d 100644
--- a/src/native/ogl/OglCheck.c
+++ b/src/native/ogl/OglCheck.c
@@ -391,8 +391,8 @@ Java_javax_media_j3d_NativePipeline_getSupportedOglVendorNative(
}
/* Destroy all dummy objects */
- ReleaseDC(hwnd, hdc);
wglDeleteContext(hrc);
+ ReleaseDC(hwnd, hdc);
DestroyWindow(hwnd);
UnregisterClass(szAppName, (HINSTANCE)NULL);