aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/d3d/NativeConfigTemplate3D.cpp
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2006-01-06 01:01:23 +0000
committerKevin Rushforth <[email protected]>2006-01-06 01:01:23 +0000
commitfce434af80518d9c24e1b48c64d1baf9e4e5f543 (patch)
tree955b7725fe01857aa3e7bcc4871283636331e849 /src/native/d3d/NativeConfigTemplate3D.cpp
parent50e3176d34502d013f0e3a3810e8f2d8e96de5dc (diff)
1. Fixed show-stopper D3D hang
2. Added placeholders for release notes git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@497 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/native/d3d/NativeConfigTemplate3D.cpp')
-rw-r--r--src/native/d3d/NativeConfigTemplate3D.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/native/d3d/NativeConfigTemplate3D.cpp b/src/native/d3d/NativeConfigTemplate3D.cpp
index 5f7e236..a5e065a 100644
--- a/src/native/d3d/NativeConfigTemplate3D.cpp
+++ b/src/native/d3d/NativeConfigTemplate3D.cpp
@@ -129,9 +129,10 @@ jint JNICALL Java_javax_media_j3d_NativeConfigTemplate3D_choosePixelFormat(
// first 0-7bits for depth,8-15 Stencil
retValue = deviceInfo->maxZBufferDepthSize |(deviceInfo->maxStencilDepthSize <<8);
- // set value for Canvas3D GraphicsConfigInfo
- jlong *pfi_ptr = (jlong *) env->GetPrimitiveArrayCritical(offScreenPFArray, NULL);
- pfi_ptr[0] = retValue;
+ // set value for Canvas3D GraphicsConfigInfo
+ jlong *pfi_ptr = (jlong *) env->GetLongArrayElements(offScreenPFArray, NULL);
+ pfi_ptr[0] = retValue;
+ env->ReleaseLongArrayElements(offScreenPFArray, pfi_ptr, 0);
}
}
}