From c700e649ca44d0dcff8b271e42d949ea72fe3c63 Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Tue, 16 Aug 2011 13:09:46 -0700 Subject: Fixing asynchronous performance issues. Change-Id: I10f02cd37a33a6c655814d24e0a4291dc044fba3 --- rsProgram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rsProgram.cpp') diff --git a/rsProgram.cpp b/rsProgram.cpp index b1d8f48b..33eb422e 100644 --- a/rsProgram.cpp +++ b/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"); -- cgit v1.2.3