From ef818a470ef7ea28ad8f70ef77bb658458cee48a Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Mon, 10 Dec 2012 21:05:19 +0000 Subject: [PATCH] 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 --- src/gpu/gl/GrGLProgram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp index ba86383201..0558701322 100644 --- a/src/gpu/gl/GrGLProgram.cpp +++ b/src/gpu/gl/GrGLProgram.cpp @@ -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;