summaryrefslogtreecommitdiff
path: root/libs/rs/rsProgramVertex.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2010-08-04 17:50:20 -0700
committer Jason Sams <rjsams@android.com> 2010-08-05 10:00:21 -0700
commit442a647424e6537e94341654e3ae5d52efd84862 (patch)
tree0a73c7551dceac6b4a81ee6ddb9b7f2ef11c89b4 /libs/rs/rsProgramVertex.cpp
parent208c425e842afed177801016c00c2c01bd8b44aa (diff)
Support constant and varying colors in ProgramFragment.
Change-Id: I16ce84ff427016f3a1923594efc718eca32dd7f2
Diffstat (limited to 'libs/rs/rsProgramVertex.cpp')
-rw-r--r--libs/rs/rsProgramVertex.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp
index 555800702e04..60de04a879e6 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<const float *>(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