From 442a647424e6537e94341654e3ae5d52efd84862 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 4 Aug 2010 17:50:20 -0700 Subject: Support constant and varying colors in ProgramFragment. Change-Id: I16ce84ff427016f3a1923594efc718eca32dd7f2 --- libs/rs/rsProgramVertex.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libs/rs/rsProgramVertex.cpp') diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp index 5558007..60de04a 100644 --- a/libs/rs/rsProgramVertex.cpp +++ b/libs/rs/rsProgramVertex.cpp @@ -221,7 +221,6 @@ void ProgramVertex::setupGL2(const Context *rsc, ProgramVertexState *state, Shad } rsc->checkError("ProgramVertex::setupGL2 start"); - glVertexAttrib4f(1, state->color[0], state->color[1], state->color[2], state->color[3]); const float *f = static_cast(mConstants[0]->getPtr()); @@ -405,11 +404,6 @@ void ProgramVertexState::init(Context *rsc) pv->init(rsc); pv->bindAllocation(alloc, 0); - color[0] = 1.f; - color[1] = 1.f; - color[2] = 1.f; - color[3] = 1.f; - updateSize(rsc); #endif //ANDROID_RS_BUILD_FOR_HOST -- cgit v1.1