From 4fd99ea4494dee2cff9e6d3de1e5a8750daaed42 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Wed, 28 Mar 2012 18:45:58 +0000 Subject: [PATCH] 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 --- src/gpu/GrContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 0bcecd623..301dd0405 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"); }