commit | 8c5753ea2e74ac46224f4b38f3bdec3e1bba64c6 | [log] [tgz] |
---|---|---|
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri May 20 19:11:50 2011 +0000 |
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Fri May 20 19:11:50 2011 +0000 |
tree | b9b12d830e233e40a0bbfd435644b9f996105784 | |
parent | e4c98ff48da46c61b73b72301a1811ad1c45a617 [diff] [blame] |
Fixed point no longer crashes when GL enabled in gm tests. http://codereview.appspot.com/4532073/ git-svn-id: http://skia.googlecode.com/svn/trunk@1394 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrPathRenderer.cpp b/gpu/src/GrPathRenderer.cpp index 5bea5e6..58bb12e 100644 --- a/gpu/src/GrPathRenderer.cpp +++ b/gpu/src/GrPathRenderer.cpp
@@ -203,8 +203,7 @@ // TODO: deal with perspective in some better way. tol /= 10; } else { - GrScalar sinv = GR_Scalar1 / stretch; - tol = GrMul(tol, sinv); + tol = GrScalarDiv(tol, stretch); } GrScalar tolSqd = GrMul(tol, tol);