diff --git a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java b/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java index ed1c7dd98..ef67ceff8 100644 --- a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java +++ b/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java @@ -128,7 +128,7 @@ public class OGLESShaderRenderer implements Renderer { public EnumSet getCaps() { return caps; } - + private int extractVersion(String prefixStr, String versionStr) { if (versionStr != null) { int spaceIdx = versionStr.indexOf(" ", prefixStr.length()); @@ -137,6 +137,8 @@ public class OGLESShaderRenderer implements Renderer { } else { versionStr = versionStr.substring(prefixStr.length()).trim(); } + //some device have ":" at the end of the version. + versionStr = versionStr.replaceAll("\\:", ""); float version = Float.parseFloat(versionStr); return (int) (version * 100); } else {