diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/javax/media/j3d/Canvas3D.java | 1 | ||||
-rw-r--r-- | src/classes/share/javax/media/j3d/Renderer.java | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/classes/share/javax/media/j3d/Canvas3D.java b/src/classes/share/javax/media/j3d/Canvas3D.java index 5bafee1..ab9f0a3 100644 --- a/src/classes/share/javax/media/j3d/Canvas3D.java +++ b/src/classes/share/javax/media/j3d/Canvas3D.java @@ -4870,6 +4870,7 @@ boolean isAntialiasingSet() { // The native method for setting the Viewport. void setViewport(Context ctx, int x, int y, int width, int height) { + Pipeline.getPipeline().resizeOffscreenLayer(this, width, height); Pipeline.getPipeline().setViewport(ctx, x, y, width, height); } diff --git a/src/classes/share/javax/media/j3d/Renderer.java b/src/classes/share/javax/media/j3d/Renderer.java index e39d6da..ed393e3 100644 --- a/src/classes/share/javax/media/j3d/Renderer.java +++ b/src/classes/share/javax/media/j3d/Renderer.java @@ -987,7 +987,6 @@ ArrayList<TextureRetained> textureIDResourceTable = new ArrayList<TextureRetaine int cvWidth = cvCache.getCanvasWidth(); int cvHeight = cvCache.getCanvasHeight(); - Pipeline.getPipeline().resizeOffscreenLayer(canvas, cvWidth, cvHeight); // setup viewport canvas.setViewport(canvas.ctx, 0, 0, cvWidth, cvHeight); |