From a41174ecb03331d770614ecc6351cbc890874c28 Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Fri, 27 Aug 2010 16:10:55 -0700 Subject: Fixing renderscript uniform binding bugs. Working on custom shaders. Change-Id: I0d51e879e1c2b46ef5ab696b35162898f4196fc8 --- libs/rs/rsVertexArray.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/rs/rsVertexArray.cpp') 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); -- cgit v1.2.3-59-g8ed1b