summaryrefslogtreecommitdiffstats
path: root/libs/rs/driver/rsdShader.cpp
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2012-01-05 14:55:11 -0800
committerAlex Sakhartchouk <alexst@google.com>2012-01-05 14:55:11 -0800
commit61cd9435142a6536569d922b7cd7b6a5162f31e2 (patch)
tree844fb389f451819ca5e72cfa6263eeeb60720aa4 /libs/rs/driver/rsdShader.cpp
parente079590feae3044ea3991185ab4976900d41928e (diff)
downloadframeworks_base-61cd9435142a6536569d922b7cd7b6a5162f31e2.zip
frameworks_base-61cd9435142a6536569d922b7cd7b6a5162f31e2.tar.gz
frameworks_base-61cd9435142a6536569d922b7cd7b6a5162f31e2.tar.bz2
Cleanup based on comments.
Change-Id: I2d261b3cd240b890001dcc7d2a849cfdc34328bf
Diffstat (limited to 'libs/rs/driver/rsdShader.cpp')
-rw-r--r--libs/rs/driver/rsdShader.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/rs/driver/rsdShader.cpp b/libs/rs/driver/rsdShader.cpp
index 6265074..3120bbf 100644
--- a/libs/rs/driver/rsdShader.cpp
+++ b/libs/rs/driver/rsdShader.cpp
@@ -493,11 +493,7 @@ void RsdShader::initAttribAndUniformArray() {
mAttribCount = 0;
for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
const Element *elem = mRSProgram->mHal.state.inputElements[ct];
- for (uint32_t field=0; field < elem->mHal.state.fieldsCount; field++) {
- if (elem->getFieldName(field)[0] != '#') {
- mAttribCount ++;
- }
- }
+ mAttribCount += elem->mHal.state.fieldsCount;
}
mUniformCount = 0;