|
|
@ -128,7 +128,7 @@ public class OGLESShaderRenderer implements Renderer { |
|
|
|
public EnumSet<Caps> getCaps() { |
|
|
|
public EnumSet<Caps> getCaps() { |
|
|
|
return caps; |
|
|
|
return caps; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private int extractVersion(String prefixStr, String versionStr) { |
|
|
|
private int extractVersion(String prefixStr, String versionStr) { |
|
|
|
if (versionStr != null) { |
|
|
|
if (versionStr != null) { |
|
|
|
int spaceIdx = versionStr.indexOf(" ", prefixStr.length()); |
|
|
|
int spaceIdx = versionStr.indexOf(" ", prefixStr.length()); |
|
|
@ -137,6 +137,8 @@ public class OGLESShaderRenderer implements Renderer { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
versionStr = versionStr.substring(prefixStr.length()).trim(); |
|
|
|
versionStr = versionStr.substring(prefixStr.length()).trim(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//some device have ":" at the end of the version.
|
|
|
|
|
|
|
|
versionStr = versionStr.replaceAll("\\:", ""); |
|
|
|
float version = Float.parseFloat(versionStr); |
|
|
|
float version = Float.parseFloat(versionStr); |
|
|
|
return (int) (version * 100); |
|
|
|
return (int) (version * 100); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|