Fix for Mac-specific OpenGL == complaint in GrGLProgram.cpp

Unreviewed



git-svn-id: http://skia.googlecode.com/svn/trunk@6743 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2012-12-10 21:05:19 +00:00
parent 57a54e33cf
commit ef818a470e

View File

@ -285,7 +285,7 @@ bool GrGLProgram::genEdgeCoverage(SkString* coverageVar,
break;
}
if (fDesc.fDiscardIfOutsideEdge) {
builder->fFSCode.appendf("\tif (edgeAlpha <= 0) {\n\t\tdiscard;\n\t}\n");
builder->fFSCode.appendf("\tif (edgeAlpha <= 0.0) {\n\t\tdiscard;\n\t}\n");
}
*coverageVar = "edgeAlpha";
return true;