* Fix Android 2.2 - 3.2 crash
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9081 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
a59339054a
commit
b38e545036
@ -164,6 +164,8 @@ public class OGLESShaderRenderer implements Renderer {
|
|||||||
int spaceIdx = versionStr.indexOf(" ", openGlEsStr.length());
|
int spaceIdx = versionStr.indexOf(" ", openGlEsStr.length());
|
||||||
if (spaceIdx >= 1) {
|
if (spaceIdx >= 1) {
|
||||||
versionStr = versionStr.substring(openGlEsStr.length(), spaceIdx).trim();
|
versionStr = versionStr.substring(openGlEsStr.length(), spaceIdx).trim();
|
||||||
|
}else{
|
||||||
|
versionStr = versionStr.substring(openGlEsStr.length()).trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
float version = Float.parseFloat(versionStr);
|
float version = Float.parseFloat(versionStr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user