summaryrefslogtreecommitdiff
path: root/libs/rs/rsVertexArray.cpp
diff options
context:
space:
mode:
author Alex Sakhartchouk <alexst@google.com> 2010-08-30 10:39:46 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-08-30 10:39:46 -0700
commit9846bc6a9bbcc1282791faf60718384fff12233e (patch)
treea72b560033e9b99ff78491d4466fd60309c01b35 /libs/rs/rsVertexArray.cpp
parent5367ab6aab2a61aaf534b18576dcdd0bca1b9681 (diff)
parenta41174ecb03331d770614ecc6351cbc890874c28 (diff)
Merge "Fixing renderscript uniform binding bugs. Working on custom shaders."
Diffstat (limited to 'libs/rs/rsVertexArray.cpp')
-rw-r--r--libs/rs/rsVertexArray.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/rs/rsVertexArray.cpp b/libs/rs/rsVertexArray.cpp
index 001927ca0f88..075a70da7b74 100644
--- a/libs/rs/rsVertexArray.cpp
+++ b/libs/rs/rsVertexArray.cpp
@@ -129,7 +129,7 @@ void VertexArray::setupGL2(const Context *rsc, class VertexArrayState *state, Sh
rsc->checkError("VertexArray::setupGL2 disabled");
for (uint32_t ct=0; ct < mCount; ct++) {
- uint32_t slot = 0;
+ int32_t slot = 0;
if (mAttribs[ct].name[0] == '#') {
continue;
@@ -150,6 +150,9 @@ void VertexArray::setupGL2(const Context *rsc, class VertexArrayState *state, Sh
continue;
}
}
+ if(slot < 0) {
+ continue;
+ }
//logAttrib(ct, slot);
glEnableVertexAttribArray(slot);