summaryrefslogtreecommitdiffstats
path: root/rs/java
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-03-17 19:10:14 -0700
committerAndreas Gampe <agampe@google.com>2015-03-17 19:10:14 -0700
commit16720c184946f3665dd034abaef2d648efdae627 (patch)
treebba7eb2599c07fa616a35f617557fd19f10e47c7 /rs/java
parent28e6aeca3aad075ef4fd7aab08cd1ad1ff9eb555 (diff)
downloadframeworks_base-16720c184946f3665dd034abaef2d648efdae627.zip
frameworks_base-16720c184946f3665dd034abaef2d648efdae627.tar.gz
frameworks_base-16720c184946f3665dd034abaef2d648efdae627.tar.bz2
Frameworks/base: Remove duplicate check in Mesh
Bug: 19797138 Change-Id: I0b11c4ff63a8031d5e58a06ac13f91ae0bbac5dc
Diffstat (limited to 'rs/java')
-rw-r--r--rs/java/android/renderscript/Mesh.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/rs/java/android/renderscript/Mesh.java b/rs/java/android/renderscript/Mesh.java
index 1a5dc9e..5b4cadb 100644
--- a/rs/java/android/renderscript/Mesh.java
+++ b/rs/java/android/renderscript/Mesh.java
@@ -811,9 +811,7 @@ public class Mesh extends BaseObj {
sm.getVertexAllocation(0).copy1DRangeFromUnchecked(0, mMaxIndex, mVtxData);
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);