summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2010-12-11 18:52:37 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2010-12-11 18:52:37 -0800
commit3ccc75fa5171192b1d3edf24b644bfae314ec0d3 (patch)
tree10c6533521cacc764216e3214ebfb57b775cfb3b /libs/rs/rsScriptC.cpp
parent45f1e08c348ccb129bcc25e438c05421f7123f41 (diff)
parent4859f5233c024c979e806a617ba059fa0cd9a154 (diff)
Merge "Add multitouch support to physics test. Fix context state overwrite calling invoke."
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
-rw-r--r--libs/rs/rsScriptC.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp
index d4edafd4186b..b3dbf115b6f7 100644
--- a/libs/rs/rsScriptC.cpp
+++ b/libs/rs/rsScriptC.cpp
@@ -47,7 +47,6 @@ ScriptC::~ScriptC() {
}
void ScriptC::setupScript(Context *rsc) {
- setupGLState(rsc);
mEnviroment.mStartTimeMillis
= nanoseconds_to_milliseconds(systemTime(SYSTEM_TIME_MONOTONIC));
@@ -123,6 +122,7 @@ uint32_t ScriptC::run(Context *rsc) {
return 0;
}
+ setupGLState(rsc);
setupScript(rsc);
uint32_t ret = 0;
@@ -278,6 +278,7 @@ void ScriptC::runForEach(Context *rsc,
rsAssert(ain->getType()->getDimZ() == 0);
+ setupGLState(rsc);
setupScript(rsc);
Script * oldTLS = setTLS(this);
@@ -336,7 +337,6 @@ void ScriptC::runForEach(Context *rsc,
}
void ScriptC::Invoke(Context *rsc, uint32_t slot, const void *data, uint32_t len) {
- //LOGE("rsi_ScriptInvoke %i", slot);
if ((slot >= mEnviroment.mInvokeFunctionCount) ||
(mEnviroment.mInvokeFunctions[slot] == NULL)) {
rsc->setError(RS_ERROR_BAD_SCRIPT, "Calling invoke on bad script");