aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/d3d
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2007-04-13 21:26:47 +0000
committerChien Yang <[email protected]>2007-04-13 21:26:47 +0000
commitc29c72d93cd2979469efc8c4c11b7ee8b87f1176 (patch)
treeca4eab948ef372719480de4dc2e1585a1112112a /src/native/d3d
parent4b7f00ce1b26ac4a7347df5cbb34dbba74219c99 (diff)
Fixed to Issue 396 : Off-screen Canvas3D / D3D: Resizing crashes VM
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@821 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/native/d3d')
-rw-r--r--src/native/d3d/Canvas3D.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/native/d3d/Canvas3D.cpp b/src/native/d3d/Canvas3D.cpp
index 010da46..0bc73cb 100644
--- a/src/native/d3d/Canvas3D.cpp
+++ b/src/native/d3d/Canvas3D.cpp
@@ -1112,18 +1112,10 @@ jlong JNICALL Java_javax_media_j3d_NativePipeline_createOffScreenBuffer(
jlong fbConfigListPtr,
jint width,
jint height)
-{
-
-
- if (ctx == 0) {
- // createContext() will be invoked later in Renderer
- return 1;
- } else {
- GetCtx2();
- d3dCtx->d3dPresent.BackBufferWidth = width;
- d3dCtx->d3dPresent.BackBufferHeight = height;
- return SUCCEEDED(d3dCtx->resetSurface(env, cv));
- }
+ {
+ // Issue 396.
+ // createContext() will be invoked later in Renderer
+ return 1;
}