Updated workaround for Intel 6xxx clear to 0/1 bug
authorEric Karl <ericrk@google.com>
Thu, 18 May 2017 22:08:09 +0000 (15:08 -0700)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 19 May 2017 15:01:03 +0000 (15:01 +0000)
commitaeaf22bb0764c2a1b828d5f84f964ad77dce49b7
treea9b691a47eed970eb93467e1bcbe43da969c539f
parentcb9cc7086047bbbed1bd142d722f4952c94fb507
Updated workaround for Intel 6xxx clear to 0/1 bug

The previous workaround only handled the glClearColor(0,0,0,1) case,
it turns out we need to work around any glClearColor made up of entirely
0s and 1s.

R=bsalomon@google.com
Bug: 710443
Change-Id: I78a75559fc11811ad9a218436231354d66d2ad51
Reviewed-on: https://skia-review.googlesource.com/17327
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Eric Karl <ericrk@chromium.org>
src/gpu/gl/GrGLCaps.cpp
src/gpu/gl/GrGLCaps.h
src/gpu/gl/GrGLGpu.cpp