From cabd0ed14fe6c4679325259682f76f351c8c99cc Mon Sep 17 00:00:00 2001 From: "jvanverth@google.com" Date: Thu, 18 Apr 2013 14:48:35 +0000 Subject: [PATCH] Reset shader in ovals GM Not resetting the shader for the paints produces interesting results on the following configs... Review URL: https://codereview.chromium.org/13947042/ git-svn-id: http://skia.googlecode.com/svn/trunk@8740 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/ovals.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gm/ovals.cpp b/gm/ovals.cpp index d0c21657dd..b5a12e7328 100755 --- a/gm/ovals.cpp +++ b/gm/ovals.cpp @@ -265,6 +265,9 @@ protected: canvas->drawRect(oval, rectPaint); canvas->drawOval(oval, fPaints[i]); + + fPaints[i].setShader(NULL); + canvas->restore(); } }