diff --git a/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java b/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java index ae2ab1f02..e9f9bb88e 100644 --- a/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java +++ b/engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java @@ -188,8 +188,14 @@ public class JoglRenderer implements Renderer { versionStr = versionStr.substring(0, spaceIdx); } - float version = Float.parseFloat(versionStr); - glslVer = (int) (version * 100); + //FIXME revisit this fix later + try { + float version = Float.parseFloat(versionStr); + glslVer = (int) (version * 100); + } catch (NumberFormatException e) { + logger.warning("Failed parsing GLSL version assuming it's v1.00"); + glslVer = 100; + } switch (glslVer) { default: