summaryrefslogtreecommitdiff
path: root/libs/rs/rsProgramVertex.cpp
diff options
context:
space:
mode:
author Alex Sakhartchouk <alexst@google.com> 2010-09-29 09:49:13 -0700
committer Alex Sakhartchouk <alexst@google.com> 2010-09-29 09:49:13 -0700
commit4378f1175546616c76ecb7f0b1159940ab22d5f4 (patch)
tree900b42e369c9cd58340c88dee93dc0139c7afe5c /libs/rs/rsProgramVertex.cpp
parent5f421a56786cf7c71159280c51bd4280f5199cfb (diff)
More robust attribute binding
Adding attribute and uniform debug logging. Checking to see if aniso filtering is available. Change-Id: I2ed9d166ed7ff3df971d7af18b7a33f4e3ade928
Diffstat (limited to 'libs/rs/rsProgramVertex.cpp')
-rw-r--r--libs/rs/rsProgramVertex.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp
index 918625c5ab06..bd1298957aae 100644
--- a/libs/rs/rsProgramVertex.cpp
+++ b/libs/rs/rsProgramVertex.cpp
@@ -214,12 +214,11 @@ void ProgramVertex::init(Context *rsc)
mAttribCount = 0;
if (mUserShader.size() > 0) {
for (uint32_t ct=0; ct < mInputCount; ct++) {
- initAddUserElement(mInputElements[ct].get(), mAttribNames, &mAttribCount, "ATTRIB_");
+ initAddUserElement(mInputElements[ct].get(), mAttribNames, &mAttribCount, RS_SHADER_ATTR);
}
-
mUniformCount = 0;
for (uint32_t ct=0; ct < mConstantCount; ct++) {
- initAddUserElement(mConstantTypes[ct]->getElement(), mUniformNames, &mUniformCount, "UNI_");
+ initAddUserElement(mConstantTypes[ct]->getElement(), mUniformNames, &mUniformCount, RS_SHADER_UNI);
}
}
createShader();