Index: src/gpu/gl/GrGLProgram.cpp |
diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp |
index cac38b4bddcf3c4445e58ddab0cbfcd3d42fa58f..6e9878a91949873a0b69bb113d65888c9ce0f2d7 100644 |
--- a/src/gpu/gl/GrGLProgram.cpp |
+++ b/src/gpu/gl/GrGLProgram.cpp |
@@ -120,17 +120,6 @@ bool GrGLProgram::genProgram(GrGLShaderBuilder* builder, |
fDesc.numCoverageEffects(), |
&inCoverage)); |
- // discard if coverage is zero |
- if (header.fDiscardIfZeroCoverage && !inCoverage.isOnes()) { |
- if (inCoverage.isZeros()) { |
- // This is unfortunate. |
- builder->fsCodeAppend("\tdiscard;\n"); |
- } else { |
- builder->fsCodeAppendf("\tif (all(lessThanEqual(%s, vec4(0.0)))) {\n\t\tdiscard;\n\t}\n", |
- inCoverage.c_str()); |
- } |
- } |
- |
if (GrGLProgramDesc::CoverageOutputUsesSecondaryOutput(header.fCoverageOutput)) { |
const char* secondaryOutputName = builder->enableSecondaryOutput(); |