summaryrefslogtreecommitdiff
path: root/libs/rs/rsVertexArray.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2010-02-08 16:31:39 -0800
committer Jason Sams <rjsams@android.com> 2010-02-08 16:32:29 -0800
commit5bec3aa2c6bcde7f81ca77b0887296bf05a745c8 (patch)
treed67e8e7222d091bdbeb8e41e0306273ec48f1a89 /libs/rs/rsVertexArray.cpp
parent0066b084b9ac10842769b3cbf755482560d21cd8 (diff)
Fix fountain and put the demos back in the optional build.
Diffstat (limited to 'libs/rs/rsVertexArray.cpp')
-rw-r--r--libs/rs/rsVertexArray.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/rs/rsVertexArray.cpp b/libs/rs/rsVertexArray.cpp
index d0c04148be37..6c2002d79e10 100644
--- a/libs/rs/rsVertexArray.cpp
+++ b/libs/rs/rsVertexArray.cpp
@@ -191,6 +191,9 @@ void VertexArray::setupGL2(const Context *rsc, class VertexArrayState *state, Sh
if (sc->isUserVertexProgram()) {
slot = sc->vtxAttribSlot(ct);
} else {
+ if (mAttribs[ct].kind == RS_KIND_USER) {
+ continue;
+ }
slot = sc->vtxAttribSlot(mAttribs[ct].kind);
}