From 5bec3aa2c6bcde7f81ca77b0887296bf05a745c8 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Mon, 8 Feb 2010 16:31:39 -0800 Subject: Fix fountain and put the demos back in the optional build. --- libs/rs/rsVertexArray.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/rs/rsVertexArray.cpp') 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); } -- cgit v1.2.3-59-g8ed1b