diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-11 18:20:35 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-11 18:20:35 +0000 |
commit | 3e11c0bd92fbd12f59080c3f9450201d6105db83 (patch) | |
tree | bb15f72ed57cdf90f36f23e7e9d73b0ad1404a39 /gm | |
parent | ad5e937c110efaf9630159d2859fabc4f38f7ab2 (diff) |
Forced GrClip to always have conservative bounds
http://codereview.appspot.com/6353089/
git-svn-id: http://skia.googlecode.com/svn/trunk@4545 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r-- | gm/texdata.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp index e7dcf53b9d..316e4d6044 100644 --- a/gm/texdata.cpp +++ b/gm/texdata.cpp @@ -89,7 +89,9 @@ protected: } GrAutoUnref au(texture); - ctx->setClip(GrRect::MakeWH(2*S, 2*S)); + GrClip newClip(GrRect::MakeWH(2*S, 2*S)); + ctx->setClip(newClip); + ctx->setRenderTarget(target); GrPaint paint; |