Android: Don't render mesh if vertex count == 0

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10775 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
iwg..ic 11 years ago
parent 610d6e47fc
commit 123ccabaff
  1. 4
      engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java

@ -2332,6 +2332,10 @@ public class OGLESShaderRenderer implements Renderer {
} }
public void renderMesh(Mesh mesh, int lod, int count) { public void renderMesh(Mesh mesh, int lod, int count) {
if (mesh.getVertexCount() == 0) {
return;
}
/* /*
* NOTE: not supported in OpenGL ES 2.0. * NOTE: not supported in OpenGL ES 2.0.
if (context.pointSize != mesh.getPointSize()) { if (context.pointSize != mesh.getPointSize()) {

Loading…
Cancel
Save