Mark color uniform fetched after fetching it
Change-Id: I10e8027018608070a536eb8b51c7a4272e37006c
diff --git a/libs/hwui/Program.cpp b/libs/hwui/Program.cpp
index a9f13f7..4aff23e 100644
--- a/libs/hwui/Program.cpp
+++ b/libs/hwui/Program.cpp
@@ -153,7 +153,7 @@
void Program::setColor(const float r, const float g, const float b, const float a) {
if (!mHasColorUniform) {
mColorUniform = getUniform("color");
- mHasColorUniform = false;
+ mHasColorUniform = true;
}
glUniform4f(mColorUniform, r, g, b, a);
}