diff options
author | 2010-06-17 18:05:38 -0700 | |
---|---|---|
committer | 2010-06-17 18:05:38 -0700 | |
commit | 6d1cf4148cbaec21cbc7d200894f6c7923075ed0 (patch) | |
tree | 8adc2ae4c95c5421dc064ec5dc7a94d2fc6147bc /libs/rs/rsProgramVertex.cpp | |
parent | 020bb7b5ac26a6e2d2f6852952a84bb246445fcf (diff) |
Remove legacy drawing functions.
Skip element names starting with '#'
Change-Id: I6b0967ed1dc47c072c3bed7c0219e2215a7068a6
Diffstat (limited to 'libs/rs/rsProgramVertex.cpp')
-rw-r--r-- | libs/rs/rsProgramVertex.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp index d667c86aaf67..e7292c0034e5 100644 --- a/libs/rs/rsProgramVertex.cpp +++ b/libs/rs/rsProgramVertex.cpp @@ -160,6 +160,11 @@ void ProgramVertex::createShader() const Element *e = mInputElements[ct].get(); for (uint32_t field=0; field < e->getFieldCount(); field++) { const Element *f = e->getField(field); + const char *fn = e->getFieldName(field); + + if (fn[0] == '#') { + continue; + } // Cannot be complex rsAssert(!f->getFieldCount()); @@ -172,7 +177,7 @@ void ProgramVertex::createShader() rsAssert(0); } - mShader.append(e->getFieldName(field)); + mShader.append(fn); mShader.append(";\n"); } } |