diff options
| author | Jason Sams <rjsams@android.com> | 2009-12-07 13:00:25 -0800 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2009-12-07 13:00:25 -0800 |
| commit | ffacbc3419825ec1c786dd3c27f3e2a8cd071d8f (patch) | |
| tree | 6958434b5abf33e568682de68baed38a8ad5367a /graphics/java/android/renderscript/SimpleMesh.java | |
| parent | 1b15acf705a6bcca333b1e8a6a48039242cc7d57 (diff) | |
| parent | fd2f6358321e95d661f24ba4e08327268035aa59 (diff) | |
| download | frameworks_base-ffacbc3419825ec1c786dd3c27f3e2a8cd071d8f.zip frameworks_base-ffacbc3419825ec1c786dd3c27f3e2a8cd071d8f.tar.gz frameworks_base-ffacbc3419825ec1c786dd3c27f3e2a8cd071d8f.tar.bz2 | |
am fd2f6358: Merge change I771bebb9 into eclair
Merge commit 'fd2f6358321e95d661f24ba4e08327268035aa59' into eclair-mr2
* commit 'fd2f6358321e95d661f24ba4e08327268035aa59':
Add Java exceptions to catch RS calls with no context or no surface.
Diffstat (limited to 'graphics/java/android/renderscript/SimpleMesh.java')
| -rw-r--r-- | graphics/java/android/renderscript/SimpleMesh.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/SimpleMesh.java b/graphics/java/android/renderscript/SimpleMesh.java index 3d10e3b..f45074e 100644 --- a/graphics/java/android/renderscript/SimpleMesh.java +++ b/graphics/java/android/renderscript/SimpleMesh.java @@ -35,18 +35,22 @@ public class SimpleMesh extends BaseObj { } public void bindVertexAllocation(Allocation a, int slot) { + mRS.validate(); mRS.nSimpleMeshBindVertex(mID, a.mID, slot); } public void bindIndexAllocation(Allocation a) { + mRS.validate(); mRS.nSimpleMeshBindIndex(mID, a.mID); } public Allocation createVertexAllocation(int slot) { + mRS.validate(); return Allocation.createTyped(mRS, mVertexTypes[slot]); } public Allocation createIndexAllocation() { + mRS.validate(); return Allocation.createTyped(mRS, mIndexType); } @@ -162,6 +166,7 @@ public class SimpleMesh extends BaseObj { } public SimpleMesh create() { + mRS.validate(); SimpleMesh sm = internalCreate(mRS, this); sm.mVertexTypes = new Type[mVertexTypeCount]; for(int ct=0; ct < mVertexTypeCount; ct++) { |
