aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-05-12 07:53:45 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-12 07:53:46 -0700
commit97fc9308e31bf03799725f998841212cd6231cdd (patch)
tree38330c9d940eeee78aa76ec275d7ccb6378ff3cd /src
parent4cba202b7162fb5f364235dd29f0bdbd53a8e33c (diff)
Fix sRGB textures that must be copied (for NPOT tiling, etc...)
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrTextureParamsAdjuster.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp
index 8868309a80..3c4769b96e 100644
--- a/src/gpu/GrTextureParamsAdjuster.cpp
+++ b/src/gpu/GrTextureParamsAdjuster.cpp
@@ -72,6 +72,7 @@ static GrTexture* copy_on_gpu(GrTexture* inputTexture, const SkIRect* subset,
// 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;