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);