diff options
Diffstat (limited to 'graphics/java/android/renderscript/Sampler.java')
-rw-r--r-- | graphics/java/android/renderscript/Sampler.java | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/graphics/java/android/renderscript/Sampler.java b/graphics/java/android/renderscript/Sampler.java index 8e1cac5..98943a1 100644 --- a/graphics/java/android/renderscript/Sampler.java +++ b/graphics/java/android/renderscript/Sampler.java @@ -239,21 +239,10 @@ public class Sampler extends BaseObj { } } - static synchronized Sampler internalCreate(RenderScript rs, Builder b) { - rs.nSamplerBegin(); - rs.nSamplerSet(0, b.mMin.mID); - rs.nSamplerSet(1, b.mMag.mID); - rs.nSamplerSet(2, b.mWrapS.mID); - rs.nSamplerSet(3, b.mWrapT.mID); - rs.nSamplerSet(4, b.mWrapR.mID); - rs.nSamplerSet2(5, b.mAniso); - int id = rs.nSamplerCreate(); - return new Sampler(id, rs); - } - public Sampler create() { mRS.validate(); - return internalCreate(mRS, this); + int id = mRS.nSamplerCreate(mMag.mID, mMin.mID, mWrapS.mID, mWrapT.mID, mWrapR.mID, mAniso); + return new Sampler(id, mRS); } } |