am 9cc36ac2: Merge "Frameworks/base: Remove duplicate check in Mesh"

* commit '9cc36ac2a2e07f81a9b11da7ff08e0da58b0143e':
  Frameworks/base: Remove duplicate check in Mesh
This commit is contained in:
Andreas Gampe
2015-03-18 22:33:16 +00:00
committed by Android Git Automerger

View File

@@ -811,10 +811,8 @@ public class Mesh extends BaseObj {
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) {