From a7a8c3224dd5e24f43bd1cf3cf4eccff84962d1f Mon Sep 17 00:00:00 2001 From: Colt-M16A1 <31347585+Colt-M16A1@users.noreply.github.com> Date: Wed, 21 Aug 2024 04:03:46 +0300 Subject: [PATCH] tearing fix --- src/backend/drm/DRM.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 20e9165..10b3ab8 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1449,10 +1449,8 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) { if (STATE.enabled && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER)) flags |= DRM_MODE_PAGE_FLIP_EVENT; - if (STATE.presentationMode == AQ_OUTPUT_PRESENTATION_IMMEDIATE && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER)) { + if (STATE.presentationMode == AQ_OUTPUT_PRESENTATION_IMMEDIATE && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER)) flags |= DRM_MODE_PAGE_FLIP_ASYNC; - flags &= ~DRM_MODE_PAGE_FLIP_EVENT; // Do not request an event for immediate page flips, as it makes no sense. - } } // we can't go further without a blit