From c29c72d93cd2979469efc8c4c11b7ee8b87f1176 Mon Sep 17 00:00:00 2001 From: Chien Yang Date: Fri, 13 Apr 2007 21:26:47 +0000 Subject: 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 --- src/native/d3d/Canvas3D.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/native/d3d') 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; } -- cgit v1.2.3