Fix bug where equality was used instead of assignment.
authortomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 30 Jun 2011 14:47:55 +0000 (14:47 +0000)
committertomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 30 Jun 2011 14:47:55 +0000 (14:47 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@1767 2bbb7eff-a529-9590-31e7-b0007b416f81

gpu/src/GrPathUtils.cpp

index e78bc54abf90c65f764100d9467519e93625ebe7..84b9097501ab4115b7b7b18f65e2d0259cb48914 100644 (file)
@@ -23,7 +23,7 @@ const GrScalar GrPathUtils::gMinCurveTol (GrFloatToScalar(0.0001f));
 uint32_t GrPathUtils::quadraticPointCount(const GrPoint points[],
                                           GrScalar tol) {
     if (tol < gMinCurveTol) {
-        tol == gMinCurveTol;
+        tol = gMinCurveTol;
     }
     GrAssert(tol > 0);
 
@@ -75,7 +75,7 @@ uint32_t GrPathUtils::generateQuadraticPoints(const GrPoint& p0,
 uint32_t GrPathUtils::cubicPointCount(const GrPoint points[],
                                            GrScalar tol) {
     if (tol < gMinCurveTol) {
-        tol == gMinCurveTol;
+        tol = gMinCurveTol;
     }
     GrAssert(tol > 0);
 
@@ -131,7 +131,7 @@ uint32_t GrPathUtils::generateCubicPoints(const GrPoint& p0,
 int GrPathUtils::worstCasePointCount(const GrPath& path, int* subpaths,
                                      GrScalar tol) {
     if (tol < gMinCurveTol) {
-        tol == gMinCurveTol;
+        tol = gMinCurveTol;
     }
     GrAssert(tol > 0);