summaryrefslogtreecommitdiff
path: root/libs/rs/rsScriptC.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-12-11 17:42:30 -0800
committerJason Sams <rjsams@android.com>2010-12-11 17:42:30 -0800
commit4859f5233c024c979e806a617ba059fa0cd9a154 (patch)
tree877db7a40d22d6ec2aef3e6b35f7790f9bac227c /libs/rs/rsScriptC.cpp
parent4ef6650bd05a39a09958ea1db92f120ea4949cb1 (diff)
Add multitouch support to physics test.
Fix context state overwrite calling invoke. Change-Id: I7a71237bcf36abb31f98eb6d872501fdfb007d81
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");