From b38e5450367929833df9baeb5800bfbb58b66861 Mon Sep 17 00:00:00 2001 From: "Sha..rd" Date: Tue, 17 Jan 2012 02:13:17 +0000 Subject: [PATCH] * Fix Android 2.2 - 3.2 crash git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9081 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../android/com/jme3/renderer/android/OGLESShaderRenderer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java b/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java index 2e543b5e3..c00680cc9 100644 --- a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java +++ b/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);