aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLProgramDesc.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-15 17:53:04 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-15 17:53:04 +0000
commit0c89db2929657f06ea7fac886e5f156ba1b37b7e (patch)
treeed6b6b4689f064f61d753989da550f300ff280f1 /src/gpu/gl/GrGLProgramDesc.cpp
parentd09ab846789a33a969f9ea8428555270fe4de23e (diff)
Disable blending when there is an effect that reads the dst and draw state blend is 1,0.
R=robertphillips@google.com Review URL: https://codereview.chromium.org/15199008 git-svn-id: http://skia.googlecode.com/svn/trunk@9147 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/GrGLProgramDesc.cpp')
-rw-r--r--src/gpu/gl/GrGLProgramDesc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLProgramDesc.cpp b/src/gpu/gl/GrGLProgramDesc.cpp
index 532923a19c..e8812fade7 100644
--- a/src/gpu/gl/GrGLProgramDesc.cpp
+++ b/src/gpu/gl/GrGLProgramDesc.cpp
@@ -178,8 +178,8 @@ void GrGLProgramDesc::Build(const GrDrawState& drawState,
desc->fFirstCoverageStage = firstCoverageStage;
}
} else if (readsDst &&
- kOne_GrBlendCoeff == drawState.getSrcBlendCoeff() &&
- kZero_GrBlendCoeff == drawState.getDstBlendCoeff()) {
+ kOne_GrBlendCoeff == srcCoeff &&
+ kZero_GrBlendCoeff == dstCoeff) {
desc->fCoverageOutput = kCombineWithDst_CoverageOutput;
desc->fFirstCoverageStage = firstCoverageStage;
}