* fixed compile error with API change in ViewPort.setClearEnabled

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7616 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
bre..ns 14 years ago
parent 31c2fdab15
commit c874fee6fc
  1. 2
      sdk/jme3-core/src/com/jme3/gde/core/scene/OffScenePanel.java
  2. 2
      sdk/jme3-core/src/com/jme3/gde/core/scene/ScenePreviewProcessor.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 // create a pre-view. a view that is rendered before the main view
viewPort = SceneApplication.getApplication().getRenderManager().createPreView("Offscreen View", camera); viewPort = SceneApplication.getApplication().getRenderManager().createPreView("Offscreen View", camera);
viewPort.setBackgroundColor(ColorRGBA.DarkGray); viewPort.setBackgroundColor(ColorRGBA.DarkGray);
viewPort.setClearEnabled(true); viewPort.setClearFlags(true, true, true);
viewPort.addProcessor(this); viewPort.addProcessor(this);
} }

@ -83,7 +83,7 @@ public class ScenePreviewProcessor implements SceneProcessor {
// create a pre-view. a view that is rendered before the main view // create a pre-view. a view that is rendered before the main view
offView = SceneApplication.getApplication().getRenderManager().createPreView("Offscreen View", offCamera); offView = SceneApplication.getApplication().getRenderManager().createPreView("Offscreen View", offCamera);
offView.setBackgroundColor(ColorRGBA.DarkGray); offView.setBackgroundColor(ColorRGBA.DarkGray);
offView.setClearEnabled(true); offView.setClearFlags(true, true, true);
offView.addProcessor(this); offView.addProcessor(this);

Loading…
Cancel
Save