From 6752d0ab029a185a42e34e7a933b669e6ed19e89 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 12 Dec 2011 12:15:17 -0800 Subject: Mark color uniform fetched after fetching it Change-Id: I10e8027018608070a536eb8b51c7a4272e37006c --- libs/hwui/Program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/hwui/Program.cpp') diff --git a/libs/hwui/Program.cpp b/libs/hwui/Program.cpp index a9f13f7cd03f..4aff23e48ac8 100644 --- a/libs/hwui/Program.cpp +++ b/libs/hwui/Program.cpp @@ -153,7 +153,7 @@ void Program::set(const mat4& projectionMatrix, const mat4& modelViewMatrix, 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); } -- cgit v1.2.3-59-g8ed1b