Make printf in GrContext about partial pixel coverage be debug-only
git-svn-id: http://skia.googlecode.com/svn/trunk@3516 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
d4df21793d
commit
95cd7bdf2b
@ -1943,10 +1943,12 @@ void GrContext::setPaint(const GrPaint& paint) {
|
||||
fDrawState->setColorFilter(paint.fColorFilterColor, paint.fColorFilterXfermode);
|
||||
fDrawState->setCoverage(paint.fCoverage);
|
||||
|
||||
#if GR_DEBUG
|
||||
if ((paint.getActiveMaskStageMask() || 0xffffffff != paint.fCoverage) &&
|
||||
!fGpu->canApplyCoverage()) {
|
||||
GrPrintf("Partial pixel coverage will be incorrectly blended.\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
GrDrawTarget* GrContext::prepareToDraw(const GrPaint& paint,
|
||||
|
Loading…
Reference in New Issue
Block a user