summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/rs/rsDevice.cpp')
-rw-r--r--libs/rs/rsDevice.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/rs/rsDevice.cpp b/libs/rs/rsDevice.cpp
index b670ad4..a96b114 100644
--- a/libs/rs/rsDevice.cpp
+++ b/libs/rs/rsDevice.cpp
@@ -15,7 +15,11 @@
*/
#include "rsDevice.h"
+#ifndef ANDROID_RS_BUILD_FOR_HOST
#include "rsContext.h"
+#else
+#include "rsContextHostStub.h"
+#endif
using namespace android;
using namespace android::renderscript;
@@ -33,7 +37,7 @@ Device::~Device()
void Device::addContext(Context *rsc)
{
- mContexts.add(rsc);
+ mContexts.push(rsc);
}
void Device::removeContext(Context *rsc)