diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2026-03-07 00:05:10 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-06 21:05:10 +0000 |
| commit | a5858018d896e0e0f0db517f893cd9a0936dd881 (patch) | |
| tree | 64bec75dc882ea27d5ee62a6ba25b22fa78146ae /src/helpers/TransferFunction.cpp | |
| parent | 8685fd7b0c2afe06c798554dea80c53f98d73894 (diff) | |
renderer: shader variants refactor (#13434)
Part 0 of renderer reworks.
Diffstat (limited to 'src/helpers/TransferFunction.cpp')
| -rw-r--r-- | src/helpers/TransferFunction.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<Hyprlang::STRING>("render:cm_sdr_eotf"); static auto sdrEOTF = NTransferFunction::fromString(*PSDREOTF); static auto P = Event::bus()->m_events.config.reloaded.listen([]() { sdrEOTF = NTransferFunction::fromString(*PSDREOTF); }); |
