зеркало из https://github.com/mozilla/moz-skia.git
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
This commit is contained in:
Родитель
d91f370835
Коммит
4fd99ea449
|
@ -1944,7 +1944,7 @@ void GrContext::setPaint(const GrPaint& paint) {
|
||||||
fDrawState->setCoverage(paint.fCoverage);
|
fDrawState->setCoverage(paint.fCoverage);
|
||||||
|
|
||||||
#if GR_DEBUG
|
#if GR_DEBUG
|
||||||
if ((paint.getActiveMaskStageMask() || 0xffffffff != paint.fCoverage) &&
|
if ((paint.getActiveMaskStageMask() || 0xff != paint.fCoverage) &&
|
||||||
!fGpu->canApplyCoverage()) {
|
!fGpu->canApplyCoverage()) {
|
||||||
GrPrintf("Partial pixel coverage will be incorrectly blended.\n");
|
GrPrintf("Partial pixel coverage will be incorrectly blended.\n");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче