summaryrefslogtreecommitdiff
path: root/libs/rs/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
commit928f5cf2870177abd715e1dfb81da6ac1fe3e845 (patch)
tree64fb0741a6f242112b3576afa63463556eae5586 /libs/rs/rsScript.cpp
parent3a833d8e0f5e1f09a9e276d0f8faf18f7ab86e27 (diff)
Move placement of script enviroment data to base.
Diffstat (limited to 'libs/rs/rsScript.cpp')
-rw-r--r--libs/rs/rsScript.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/libs/rs/rsScript.cpp b/libs/rs/rsScript.cpp
index 24a630c7b92f..ae85c9cc956f 100644
--- a/libs/rs/rsScript.cpp
+++ b/libs/rs/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()