From ebfb436a49673693b98469683451bd9ede797557 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 23 Sep 2009 13:57:02 -0700 Subject: Add raster object to control point and line params. Add flag to force SW rendering. --- libs/rs/rsDevice.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libs/rs/rsDevice.cpp') 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(dev); + if (p == RS_DEVICE_PARAM_FORCE_SOFTWARE_GL) { + d->mForceSW = value != 0; + return; + } + rsAssert(0); +} + -- cgit v1.1