summaryrefslogtreecommitdiff
path: root/libs/rs/rsVertexArray.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2010-06-17 18:05:38 -0700
committer Jason Sams <rjsams@android.com> 2010-06-17 18:05:38 -0700
commit6d1cf4148cbaec21cbc7d200894f6c7923075ed0 (patch)
tree8adc2ae4c95c5421dc064ec5dc7a94d2fc6147bc /libs/rs/rsVertexArray.cpp
parent020bb7b5ac26a6e2d2f6852952a84bb246445fcf (diff)
Remove legacy drawing functions.
Skip element names starting with '#' Change-Id: I6b0967ed1dc47c072c3bed7c0219e2215a7068a6
Diffstat (limited to 'libs/rs/rsVertexArray.cpp')
-rw-r--r--libs/rs/rsVertexArray.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/rs/rsVertexArray.cpp b/libs/rs/rsVertexArray.cpp
index 6f15db075c0e..a13371abaddf 100644
--- a/libs/rs/rsVertexArray.cpp
+++ b/libs/rs/rsVertexArray.cpp
@@ -123,6 +123,11 @@ 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;
+
+ if (mAttribs[ct].name[0] == '#') {
+ continue;
+ }
+
if (sc->isUserVertexProgram()) {
slot = sc->vtxAttribSlot(ct);
} else {