Fix emulated glColor in es2 mode.
diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp
index 058cd73..153e2d6 100644
--- a/libs/rs/rsProgramVertex.cpp
+++ b/libs/rs/rsProgramVertex.cpp
@@ -158,6 +158,8 @@
//return;
}
+ glVertexAttrib4f(1, state->color[0], state->color[1], state->color[2], state->color[3]);
+
const float *f = static_cast<const float *>(mConstants->getPtr());
Matrix mvp;
@@ -259,6 +261,11 @@
pv->init(rsc);
pv->bindAllocation(alloc);
+ color[0] = 1.f;
+ color[1] = 1.f;
+ color[2] = 1.f;
+ color[3] = 1.f;
+
updateSize(rsc, w, h);
}