aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-28 18:45:58 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-28 18:45:58 +0000
commit4fd99ea4494dee2cff9e6d3de1e5a8750daaed42 (patch)
tree7855835d5da17729752cab233f0b62fdc194e32d
parentd91f370835c61c63c643c147ac8625157ee20993 (diff)
Fix comparison of GrPaint::fCoverage (which is a byte not a uint32_t)
git-svn-id: http://skia.googlecode.com/svn/trunk@3527 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/gpu/GrContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 0bcecd6233..301dd04059 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -1944,7 +1944,7 @@ void GrContext::setPaint(const GrPaint& paint) {
fDrawState->setCoverage(paint.fCoverage);
#if GR_DEBUG
- if ((paint.getActiveMaskStageMask() || 0xffffffff != paint.fCoverage) &&
+ if ((paint.getActiveMaskStageMask() || 0xff != paint.fCoverage) &&
!fGpu->canApplyCoverage()) {
GrPrintf("Partial pixel coverage will be incorrectly blended.\n");
}