diff options
author | Jason Sams <rjsams@android.com> | 2010-01-27 14:41:43 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-01-27 14:41:43 -0800 |
commit | 5dbfe93b3f15f3a837836d024958635fd8f9ad14 (patch) | |
tree | 7a86155c3054d0b7fe0d655e2f2dd21754b05330 /libs/rs/rsProgramVertex.cpp | |
parent | 445cc0e4bfd5b9460fb1cdccd22d8d54a49e5da1 (diff) | |
download | frameworks_base-5dbfe93b3f15f3a837836d024958635fd8f9ad14.zip frameworks_base-5dbfe93b3f15f3a837836d024958635fd8f9ad14.tar.gz frameworks_base-5dbfe93b3f15f3a837836d024958635fd8f9ad14.tar.bz2 |
Fix some minor bugs with GL state setup that were exposed by Droids driver.
Diffstat (limited to 'libs/rs/rsProgramVertex.cpp')
-rw-r--r-- | libs/rs/rsProgramVertex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp index 2c9bdaa..28f13d4 100644 --- a/libs/rs/rsProgramVertex.cpp +++ b/libs/rs/rsProgramVertex.cpp @@ -204,6 +204,7 @@ void ProgramVertex::setupGL2(const Context *rsc, ProgramVertexState *state, Shad //return; } + 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()); @@ -220,6 +221,7 @@ void ProgramVertex::setupGL2(const Context *rsc, ProgramVertexState *state, Shad &f[RS_PROGRAM_VERTEX_TEXTURE_OFFSET]); } + rsc->checkError("ProgramVertex::setupGL2 begin uniforms"); uint32_t uidx = 1; for (uint32_t ct=0; ct < mConstantCount; ct++) { Allocation *alloc = mConstants[ct+1].get(); |