diff options
author | Jason Sams <rjsams@android.com> | 2010-12-13 15:32:35 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-12-13 15:32:35 -0800 |
commit | d4b23b54445b13dacaafad97d100999abb36ea6f (patch) | |
tree | 265a246ae22c5b726690c422bc5c5518e6d445a0 /graphics/java/android/renderscript/Mesh.java | |
parent | 666a5ed98142867bcd6658c97210b775c828dae5 (diff) |
More API updates.
Change-Id: I754dc645ac08fa25019eed8fd8b7b3c47f178ff2
Diffstat (limited to 'graphics/java/android/renderscript/Mesh.java')
-rw-r--r-- | graphics/java/android/renderscript/Mesh.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/graphics/java/android/renderscript/Mesh.java b/graphics/java/android/renderscript/Mesh.java index 44faa32d239b..b103af418edc 100644 --- a/graphics/java/android/renderscript/Mesh.java +++ b/graphics/java/android/renderscript/Mesh.java @@ -77,18 +77,14 @@ public class Mesh extends BaseObj { for(int i = 0; i < vtxCount; i ++) { if(vtxIDs[i] != 0) { - mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, - Allocation.USAGE_GRAPHICS_VERTEX | - Allocation.USAGE_SCRIPT); + mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); mVertexBuffers[i].updateFromNative(); } } for(int i = 0; i < idxCount; i ++) { if(idxIDs[i] != 0) { - mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, - Allocation.USAGE_GRAPHICS_VERTEX | - Allocation.USAGE_SCRIPT); + mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); mIndexBuffers[i].updateFromNative(); } mPrimitives[i] = Primitive.values()[primitives[i]]; |