diff options
| author | 2010-08-30 10:39:46 -0700 | |
|---|---|---|
| committer | 2010-08-30 10:39:46 -0700 | |
| commit | 9846bc6a9bbcc1282791faf60718384fff12233e (patch) | |
| tree | a72b560033e9b99ff78491d4466fd60309c01b35 /libs/rs/rsVertexArray.cpp | |
| parent | 5367ab6aab2a61aaf534b18576dcdd0bca1b9681 (diff) | |
| parent | a41174ecb03331d770614ecc6351cbc890874c28 (diff) | |
Merge "Fixing renderscript uniform binding bugs. Working on custom shaders."
Diffstat (limited to 'libs/rs/rsVertexArray.cpp')
| -rw-r--r-- | libs/rs/rsVertexArray.cpp | 5 |
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); |