diff options
Diffstat (limited to 'cpp/Sampler.cpp')
| -rw-r--r-- | cpp/Sampler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/Sampler.cpp b/cpp/Sampler.cpp index fa6b2fda..a1f46691 100644 --- a/cpp/Sampler.cpp +++ b/cpp/Sampler.cpp @@ -15,7 +15,6 @@ */ #include "RenderScript.h" -#include <rs.h> using namespace android; using namespace RSC; @@ -58,7 +57,7 @@ sp<Sampler> Sampler::create(sp<RS> rs, RsSamplerValue min, RsSamplerValue mag, R #define CREATE_SAMPLER(N, MIN, MAG, WRAPS, WRAPT) sp<const Sampler> Sampler::N(sp<RS> rs) { \ if (rs->mSamplers.N == NULL) { \ - rs->mSamplers.N = (create(rs, MIN, MAG, WRAPS, WRAPT, 0.f)).get(); \ + rs->mSamplers.N = (create(rs, MIN, MAG, WRAPS, WRAPT, 0.f)); \ } \ return rs->mSamplers.N; \ } |
