diff --git a/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglCanvas.java b/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglCanvas.java index 1daa03bc8..18376abf5 100644 --- a/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglCanvas.java +++ b/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglCanvas.java @@ -268,7 +268,9 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex logger.log(Level.WARNING, "PBuffer was lost!"); pbuffer.destroy(); } - pbuffer = new Pbuffer(1, 1, acquirePixelFormat(), null); + // Let the implementation choose an appropriate pixel format. + pbuffer = new Pbuffer(1, 1, new PixelFormat(0, 0, 0, 0, 0), null); + //pbuffer = new Pbuffer(1, 1, acquirePixelFormat(), null); logger.log(Level.INFO, "OGL: Pbuffer has been created"); } } diff --git a/engine/src/ogre/com/jme3/scene/plugins/ogre/SceneLoader.java b/engine/src/ogre/com/jme3/scene/plugins/ogre/SceneLoader.java index 6f83f5f0f..f867467a2 100644 --- a/engine/src/ogre/com/jme3/scene/plugins/ogre/SceneLoader.java +++ b/engine/src/ogre/com/jme3/scene/plugins/ogre/SceneLoader.java @@ -282,9 +282,12 @@ public class SceneLoader extends DefaultHandler implements AssetLoader { node.setLocalScale(SAXUtil.parseVector3(attribs)); } else if (qName.equals("light")) { parseLight(attribs); - } else if (qName.equals("colourDiffuse")) { - assert elementStack.peek().equals("light"); - light.setColor(parseColor(attribs)); + } else if (qName.equals("colourDiffuse") || qName.equals("colorDiffuse")) { + if (elementStack.peek().equals("light")){ + light.setColor(parseColor(attribs)); + }else{ + assert elementStack.peek().equals("environment"); + } } else if (qName.equals("normal")) { parseLightNormal(attribs); } else if (qName.equals("lightAttenuation")) {