Fix two minor RS bugs.

1: index set size was populated with bad value in java,
2: bad error check in uploadToBufferObject.

Change-Id: I5946053cdfba0b2fbbaa34d562a9ec53e26ce9f2
This commit is contained in:
Jason Sams
2010-09-22 14:20:08 -07:00
parent 7aa150c096
commit 1bfccb45df
2 changed files with 1 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ public class Mesh extends BaseObj {
int[] primitives = new int[idxCount];
mRS.nMeshGetVertices(mID, vtxIDs, vtxCount);
mRS.nMeshGetIndices(mID, idxIDs, primitives, vtxCount);
mRS.nMeshGetIndices(mID, idxIDs, primitives, idxCount);
mVertexBuffers = new Allocation[vtxCount];
mIndexBuffers = new Allocation[idxCount];