* Better check for android version. Should prevent NoSuchMethodError: glVertexAttribPointer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8668 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
b2ea6e74d2
commit
f9a798c651
@ -407,9 +407,12 @@ public class OGLESShaderRenderer implements Renderer {
|
||||
|
||||
// checkGLError();
|
||||
|
||||
if ("2.2".equals(Build.VERSION.RELEASE)) {
|
||||
useVBO = false;
|
||||
} else {
|
||||
|
||||
// NOTE: SDK_INT is only available since 1.6,
|
||||
// but for jME3 it doesn't matter since android versions 1.5 and below
|
||||
// are not supported.
|
||||
if (Build.VERSION.SDK_INT >= 9){
|
||||
useVBO = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user