* fixed compile error with API change in ViewPort.setClearEnabled

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7616 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
bre..ns 2011-06-13 19:27:01 +00:00
parent 31c2fdab15
commit c874fee6fc
2 changed files with 2 additions and 2 deletions

View File

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

View File

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