aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-08-03 19:48:54 +0200
committerVaxry <[email protected]>2024-08-03 19:48:54 +0200
commitcfd43c05f5288ebfda20c926b641a4e658d04fe0 (patch)
tree9fad7c4c39a71f829de9faa14d1fc5fdd40abfcf
parent50341e0db16639d789af444601ab9ded3b408698 (diff)
downloadHyprland-cfd43c05f5288ebfda20c926b641a4e658d04fe0.tar.gz
Hyprland-cfd43c05f5288ebfda20c926b641a4e658d04fe0.zip
LONG LIVE AMERICA
-rw-r--r--src/render/OpenGL.cpp6
-rw-r--r--src/render/Renderer.cpp2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index a693658c..d2c389e3 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -2986,14 +2986,14 @@ float SRenderModifData::combinedScale() {
}
CEGLSync::~CEGLSync() {
- if (m_iFd >= 0)
- close(m_iFd);
-
if (sync == EGL_NO_SYNC_KHR)
return;
if (g_pHyprOpenGL->m_sProc.eglDestroySyncKHR(g_pHyprOpenGL->m_pEglDisplay, sync) != EGL_TRUE)
Debug::log(ERR, "eglDestroySyncKHR failed");
+
+ if (m_iFd >= 0)
+ close(m_iFd);
}
int CEGLSync::fd() {
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index a8eebd89..4fb91f2f 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -1459,6 +1459,8 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(CMonitor* pMonitor) {
explicitPresented.clear();
+ pMonitor->output->state->resetExplicitFences();
+
return ok;
}