* Better check for android version. Should prevent NoSuchMethodError: glVertexAttribPointer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8668 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 13 years ago
parent b2ea6e74d2
commit f9a798c651
  1. 7
      engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java

@ -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…
Cancel
Save