Merge "Frameworks/base: Remove duplicate check in Mesh"

This commit is contained in:
Andreas Gampe
2015-03-18 22:19:26 +00:00
committed by Gerrit Code Review

View File

@@ -810,11 +810,9 @@ public class Mesh extends BaseObj {
Mesh sm = smb.create(); Mesh sm = smb.create();
sm.getVertexAllocation(0).copy1DRangeFromUnchecked(0, mMaxIndex, mVtxData); sm.getVertexAllocation(0).copy1DRangeFromUnchecked(0, mMaxIndex, mVtxData);
if(uploadToBufferObject) {
if(uploadToBufferObject) { if(uploadToBufferObject) {
sm.getVertexAllocation(0).syncAll(Allocation.USAGE_SCRIPT); sm.getVertexAllocation(0).syncAll(Allocation.USAGE_SCRIPT);
} }
}
sm.getIndexSetAllocation(0).copy1DRangeFromUnchecked(0, mIndexCount, mIndexData); sm.getIndexSetAllocation(0).copy1DRangeFromUnchecked(0, mIndexCount, mIndexData);
if (uploadToBufferObject) { if (uploadToBufferObject) {