26 lines
965 B
Diff
26 lines
965 B
Diff
|
From cafa3320de70dada2f48cbb8b45f7b42a29da22d Mon Sep 17 00:00:00 2001
|
||
|
From: ferreo <harderthanfire@gmail.com>
|
||
|
Date: Tue, 19 Nov 2024 20:43:53 +0000
|
||
|
Subject: [PATCH] Fix tearing
|
||
|
|
||
|
---
|
||
|
src/render/Renderer.cpp | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
|
||
|
index fc17ef9f..d1d5c250 100644
|
||
|
--- a/src/render/Renderer.cpp
|
||
|
+++ b/src/render/Renderer.cpp
|
||
|
@@ -1515,7 +1515,7 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) {
|
||
|
if (inFD >= 0)
|
||
|
pMonitor->output->state->setExplicitInFence(inFD);
|
||
|
auto explicitOptions = getExplicitSyncSettings();
|
||
|
- if (explicitOptions.explicitEnabled && explicitOptions.explicitKMSEnabled)
|
||
|
+ if (explicitOptions.explicitEnabled && explicitOptions.explicitKMSEnabled && !pMonitor->tearingState.canTear)
|
||
|
pMonitor->output->state->enableExplicitOutFenceForNextCommit();
|
||
|
|
||
|
if (pMonitor->ctmUpdated) {
|
||
|
--
|
||
|
2.45.2
|
||
|
|