From a5858018d896e0e0f0db517f893cd9a0936dd881 Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Sat, 7 Mar 2026 00:05:10 +0300 Subject: renderer: shader variants refactor (#13434) Part 0 of renderer reworks. --- src/helpers/TransferFunction.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/helpers/TransferFunction.cpp') diff --git a/src/helpers/TransferFunction.cpp b/src/helpers/TransferFunction.cpp index 935f77fe..074f4b19 100644 --- a/src/helpers/TransferFunction.cpp +++ b/src/helpers/TransferFunction.cpp @@ -26,7 +26,10 @@ std::string NTransferFunction::toString(eTF tf) { return ""; } -eTF NTransferFunction::fromConfig() { +eTF NTransferFunction::fromConfig(bool useICC) { + if (useICC) + return TF_SRGB; + static auto PSDREOTF = CConfigValue("render:cm_sdr_eotf"); static auto sdrEOTF = NTransferFunction::fromString(*PSDREOTF); static auto P = Event::bus()->m_events.config.reloaded.listen([]() { sdrEOTF = NTransferFunction::fromString(*PSDREOTF); }); -- cgit v1.2.3