aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/Renderer.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-04-22 18:21:03 +0100
committerVaxry <[email protected]>2024-04-22 18:21:03 +0100
commit741c75d907916d760163f910e65186d410e27874 (patch)
treee0170d0418418b20dc9fc5f96bb3b0c3bc9e4c58 /src/render/Renderer.cpp
parentdafc9ed4eb225e87d09cc92273dd390b8a15dbd0 (diff)
downloadHyprland-741c75d907916d760163f910e65186d410e27874.tar.gz
Hyprland-741c75d907916d760163f910e65186d410e27874.zip
gamma-control: move to new impl
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r--src/render/Renderer.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index f183bf44..9a8819e1 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -1151,25 +1151,6 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(pMonitor->ID);
}
- // gamma stuff
- if (pMonitor->gammaChanged) {
- pMonitor->gammaChanged = false;
-
- const auto PGAMMACTRL = wlr_gamma_control_manager_v1_get_control(g_pCompositor->m_sWLRGammaCtrlMgr, pMonitor->output);
-
- if (!wlr_gamma_control_v1_apply(PGAMMACTRL, pMonitor->state.wlr())) {
- Debug::log(ERR, "Could not apply gamma control to {}", pMonitor->szName);
- return;
- }
-
- if (!wlr_output_test_state(pMonitor->output, pMonitor->state.wlr())) {
- Debug::log(ERR, "Output test failed for setting gamma to {}", pMonitor->szName);
- // aka rollback
- wlr_gamma_control_v1_apply(nullptr, pMonitor->state.wlr());
- wlr_gamma_control_v1_send_failed_and_destroy(PGAMMACTRL);
- }
- }
-
// tearing and DS first
bool shouldTear = false;
if (pMonitor->tearingState.nextRenderTorn) {