We were assigning color to oldColor but it in turn would never be read because the valid flags
would be cleared.
R=jvanverth@google.com
Review URL: https://codereview.chromium.org/
12313150
git-svn-id: http://skia.googlecode.com/svn/trunk@7886
2bbb7eff-a529-9590-31e7-
b0007b416f81
bool GrDrawState::srcAlphaWillBeOne(GrVertexLayout layout) const {
uint32_t validComponentFlags;
- GrColor color;
+ GrColor color;
// Check if per-vertex or constant color may have partial alpha
if (layout & kColor_VertexLayoutBit) {
validComponentFlags = 0;
+ color = 0; // not strictly necessary but we get false alarms from tools about uninit.
} else {
validComponentFlags = GrEffect::kAll_ValidComponentFlags;
color = this->getColor();