* Fixed exception in Mesh.setInterleaved
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7464 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
5bf644ff90
commit
deae399075
@ -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…
x
Reference in New Issue
Block a user