We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b9ffc0 + 9cea07c commit ae566f2Copy full SHA for ae566f2
1 file changed
libs/renderengine/skia/SkiaRenderEngine.cpp
@@ -572,8 +572,10 @@ sk_sp<SkShader> SkiaRenderEngine::createRuntimeEffectShader(
572
}
573
574
// disable tonemapping if we already locally tonemapped
575
- auto inputDataspace =
576
- usingLocalTonemap ? parameters.outputDataSpace : parameters.layer.sourceDataspace;
+ // skip tonemapping if the luts is in use
+ auto inputDataspace = usingLocalTonemap || (graphicBuffer && parameters.layer.luts)
577
+ ? parameters.outputDataSpace
578
+ : parameters.layer.sourceDataspace;
579
auto effect =
580
shaders::LinearEffect{.inputDataspace = inputDataspace,
581
.outputDataspace = parameters.outputDataSpace,
0 commit comments