summaryrefslogtreecommitdiff
path: root/libs/rs/rsProgram.cpp
diff options
context:
space:
mode:
author Alex Sakhartchouk <alexst@google.com> 2011-08-17 13:29:24 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-08-17 13:29:24 -0700
commit4270295ae8ffea9888c3bf881c07ba53d5e6f9c2 (patch)
tree24a63b455a529b2ea29052a9a46976697dbc798d /libs/rs/rsProgram.cpp
parent5a9ffaa4cb58be595ba57d4078988d0496781063 (diff)
parent117abdbc67123654d0754b686c5bbdee6b44bcdd (diff)
Merge "Fixing asynchronous performance issues."
Diffstat (limited to 'libs/rs/rsProgram.cpp')
-rw-r--r--libs/rs/rsProgram.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rs/rsProgram.cpp b/libs/rs/rsProgram.cpp
index b1d8f48b9ee3..33eb422e3354 100644
--- a/libs/rs/rsProgram.cpp
+++ b/libs/rs/rsProgram.cpp
@@ -116,7 +116,7 @@ void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) {
rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind allocation");
return;
}
- if (!alloc->getType()->isEqual(mHal.state.constantTypes[slot].get())) {
+ if (alloc->getType() != mHal.state.constantTypes[slot].get()) {
LOGE("Attempt to bind alloc at slot %u, on shader id %u, but types mismatch",
slot, (uint32_t)this);
rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind allocation");