* Fix Android 2.2 - 3.2 crash

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9081 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 13 years ago
parent a59339054a
commit b38e545036
  1. 2
      engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java

@ -164,6 +164,8 @@ public class OGLESShaderRenderer implements Renderer {
int spaceIdx = versionStr.indexOf(" ", openGlEsStr.length());
if (spaceIdx >= 1) {
versionStr = versionStr.substring(openGlEsStr.length(), spaceIdx).trim();
}else{
versionStr = versionStr.substring(openGlEsStr.length()).trim();
}
float version = Float.parseFloat(versionStr);

Loading…
Cancel
Save