From c874fee6fc6b620fde56eda9be4de22e8b7c77dc Mon Sep 17 00:00:00 2001 From: "bre..ns" Date: Mon, 13 Jun 2011 19:27:01 +0000 Subject: [PATCH] * fixed compile error with API change in ViewPort.setClearEnabled git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7616 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- sdk/jme3-core/src/com/jme3/gde/core/scene/OffScenePanel.java | 2 +- .../src/com/jme3/gde/core/scene/ScenePreviewProcessor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/scene/OffScenePanel.java b/sdk/jme3-core/src/com/jme3/gde/core/scene/OffScenePanel.java index e511da190..093193bde 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/scene/OffScenePanel.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/scene/OffScenePanel.java @@ -191,7 +191,7 @@ public class OffScenePanel extends javax.swing.JPanel implements SceneProcessor // create a pre-view. a view that is rendered before the main view viewPort = SceneApplication.getApplication().getRenderManager().createPreView("Offscreen View", camera); viewPort.setBackgroundColor(ColorRGBA.DarkGray); - viewPort.setClearEnabled(true); + viewPort.setClearFlags(true, true, true); viewPort.addProcessor(this); } diff --git a/sdk/jme3-core/src/com/jme3/gde/core/scene/ScenePreviewProcessor.java b/sdk/jme3-core/src/com/jme3/gde/core/scene/ScenePreviewProcessor.java index 8f7e822ed..66147af12 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/scene/ScenePreviewProcessor.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/scene/ScenePreviewProcessor.java @@ -83,7 +83,7 @@ public class ScenePreviewProcessor implements SceneProcessor { // create a pre-view. a view that is rendered before the main view offView = SceneApplication.getApplication().getRenderManager().createPreView("Offscreen View", offCamera); offView.setBackgroundColor(ColorRGBA.DarkGray); - offView.setClearEnabled(true); + offView.setClearFlags(true, true, true); offView.addProcessor(this);