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.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/rs/rsDevice.cpp b/libs/rs/rsDevice.cpp
index 1b3c41b..b670ad4 100644
--- a/libs/rs/rsDevice.cpp
+++ b/libs/rs/rsDevice.cpp
@@ -22,6 +22,7 @@ using namespace android::renderscript;
Device::Device()
{
+ mForceSW = false;
}
@@ -60,3 +61,13 @@ void rsDeviceDestroy(RsDevice dev)
}
+void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value)
+{
+ Device * d = static_cast<Device *>(dev);
+ if (p == RS_DEVICE_PARAM_FORCE_SOFTWARE_GL) {
+ d->mForceSW = value != 0;
+ return;
+ }
+ rsAssert(0);
+}
+