Fix some minor bugs with GL state setup that were exposed by Droids driver.
diff --git a/rsProgramVertex.cpp b/rsProgramVertex.cpp
index 2c9bdaa..28f13d4 100644
--- a/rsProgramVertex.cpp
+++ b/rsProgramVertex.cpp
@@ -204,6 +204,7 @@
//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 @@
&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();