* Fixed exception in Mesh.setInterleaved

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7464 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent 5bf644ff90
commit deae399075
  1. 3
      engine/src/core/com/jme3/scene/VertexBuffer.java

@ -423,10 +423,11 @@ public class VertexBuffer extends GLObject implements Savable, Cloneable {
}
// will force renderer to call glBufferData again
if (this.data.getClass() != data.getClass() || data.limit() != lastLimit){
if (data != null && (this.data.getClass() != data.getClass() || data.limit() != lastLimit)){
dataSizeChanged = true;
lastLimit = data.limit();
}
this.data = data;
setUpdateNeeded();
}

Loading…
Cancel
Save