Add basic support for intrinsics. Move sp<> into RScpp.
Change-Id: I74cdee7069a624ded5091d53db3a4b8ce9894033
diff --git a/cpp/Sampler.cpp b/cpp/Sampler.cpp
index fa6b2fd..a1f4669 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 @@
#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; \
}