Skip to content

Commit 55fd2c9

Browse files
author
Romain Guy
committed
Don't bind data to missing uniforms
Change-Id: Ib9d1f14eb0bef04e0910baa4eaf3e49cce81c0ce
1 parent 887c2ee commit 55fd2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/hwui/OpenGLRenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ void OpenGLRenderer::setupDrawPointUniforms() {
11891189
}
11901190

11911191
void OpenGLRenderer::setupDrawColorUniforms() {
1192-
if (mColorSet || (mShader && mSetShaderColor)) {
1192+
if ((mColorSet && !mShader) || (mShader && mSetShaderColor)) {
11931193
mCaches.currentProgram->setColor(mColorR, mColorG, mColorB, mColorA);
11941194
}
11951195
}

0 commit comments

Comments
 (0)