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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user