Disable blend for edge AA not general AA
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 12 May 2011 20:34:19 +0000 (20:34 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 12 May 2011 20:34:19 +0000 (20:34 +0000)
Review URL: http://codereview.appspot.com/4526051/

git-svn-id: http://skia.googlecode.com/svn/trunk@1316 2bbb7eff-a529-9590-31e7-b0007b416f81

gpu/src/GrDrawTarget.cpp

index 5e51513..518b4ee 100644 (file)
@@ -479,7 +479,7 @@ void GrDrawTarget::setIndexSourceToBuffer(const GrIndexBuffer* buffer) {
 
 bool GrDrawTarget::canDisableBlend() const {
     // If we're using edge antialiasing, we can't force blend off.
-    if (fCurrDrawState.fFlagBits & kAntialias_StateBit) {
+    if (fCurrDrawState.fFlagBits & kEdgeAA_StateBit) {
         return false;
     }