diff options
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrDrawContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h index 01f4ac963b..d5bde08288 100644 --- a/include/gpu/GrDrawContext.h +++ b/include/gpu/GrDrawContext.h @@ -274,7 +274,7 @@ public: int height() const { return fRenderTarget->height(); } GrPixelConfig config() const { return fRenderTarget->config(); } int numColorSamples() const { return fRenderTarget->numColorSamples(); } - bool isGammaCorrect() const { return fSurfaceProps.isGammaCorrect(); } + bool isGammaCorrect() const { return SkToBool(fColorSpace.get()); } SkSourceGammaTreatment sourceGammaTreatment() const { return this->isGammaCorrect() ? SkSourceGammaTreatment::kRespect : SkSourceGammaTreatment::kIgnore; |