summaryrefslogtreecommitdiff
path: root/rsScript.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-06-08 18:50:13 -0700
committerJason Sams <rjsams@android.com>2009-06-08 18:50:13 -0700
commit928b734b2fbba0800567c8b7e686bcf5f45483cc (patch)
tree4f6034db4a45a64e3b598a77792193ad9bbab079 /rsScript.cpp
parentefb8de1ef851c9c2a042ad06f64e33bb8b366041 (diff)
downloadrs-928b734b2fbba0800567c8b7e686bcf5f45483cc.tar.gz
Move placement of script enviroment data to base.
Diffstat (limited to 'rsScript.cpp')
-rw-r--r--rsScript.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/rsScript.cpp b/rsScript.cpp
index 24a630c7..ae85c9cc 100644
--- a/rsScript.cpp
+++ b/rsScript.cpp
@@ -21,11 +21,12 @@ using namespace android::renderscript;
Script::Script()
{
- mClearColor[0] = 0;
- mClearColor[1] = 0;
- mClearColor[2] = 0;
- mClearColor[3] = 1;
- mClearDepth = 1;
+ memset(&mEnviroment, 0, sizeof(mEnviroment));
+ mEnviroment.mClearColor[0] = 0;
+ mEnviroment.mClearColor[1] = 0;
+ mEnviroment.mClearColor[2] = 0;
+ mEnviroment.mClearColor[3] = 1;
+ mEnviroment.mClearDepth = 1;
}
Script::~Script()