aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/GammaAdjust.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/GammaAdjust.qml')
-rw-r--r--src/effects/GammaAdjust.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effects/GammaAdjust.qml b/src/effects/GammaAdjust.qml
index e4e39e5..2c3edbb 100644
--- a/src/effects/GammaAdjust.qml
+++ b/src/effects/GammaAdjust.qml
@@ -159,8 +159,7 @@ luminance = pow(original_luminance, 1.0 / gamma); // The luminance is assumed to
SourceProxy {
id: sourceProxy
input: rootItem.source
- interpolation: rootItem.smooth || (rootItem.layer.enabled && rootItem.layer.smooth)
- ? SourceProxy.NearestInterpolation : SourceProxy.LinearInterpolation
+ interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
}
ShaderEffectSource {