commit | 97fc9308e31bf03799725f998841212cd6231cdd | [log] [tgz] |
---|---|---|
author | brianosman <brianosman@google.com> | Thu May 12 07:53:45 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu May 12 07:53:46 2016 -0700 |
tree | 38330c9d940eeee78aa76ec275d7ccb6378ff3cd | |
parent | 4cba202b7162fb5f364235dd29f0bdbd53a8e33c [diff] |
Fix sRGB textures that must be copied (for NPOT tiling, etc...) BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1969923002 Review-Url: https://codereview.chromium.org/1969923002
diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp index 8868309..3c4769b 100644 --- a/src/gpu/GrTextureParamsAdjuster.cpp +++ b/src/gpu/GrTextureParamsAdjuster.cpp
@@ -72,6 +72,7 @@ // TODO: If no scaling is being performed then use copySurface. GrPaint paint; + paint.setGammaCorrect(true); // TODO: Initializing these values for no reason cause the compiler is complaining SkScalar sx = 0.f;