From f110d4b787b91dabe968a812e76e5c1f8d953487 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Mon, 21 Jun 2010 17:42:41 -0700 Subject: Move ImageProcessing and ModelViewer to reflected files. Implement boolean support. Change-Id: Iac2dc28067ac430b3e413fc651dfaa0b96214e2e --- libs/rs/rsProgramVertex.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libs/rs/rsProgramVertex.cpp') diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp index e7292c0..b8d1461 100644 --- a/libs/rs/rsProgramVertex.cpp +++ b/libs/rs/rsProgramVertex.cpp @@ -138,6 +138,11 @@ void ProgramVertex::createShader() const Element *e = mConstantTypes[ct]->getElement(); 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()); @@ -150,7 +155,7 @@ void ProgramVertex::createShader() rsAssert(0); } - mShader.append(e->getFieldName(field)); + mShader.append(fn); mShader.append(";\n"); } } -- cgit v1.1