diff options
Diffstat (limited to 'libs/rs/rsScript.cpp')
-rw-r--r-- | libs/rs/rsScript.cpp | 11 |
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() |