From 3e93fdf7794416272430300426a62497d9d0b835 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 28 Jan 2024 00:32:54 +0000 Subject: [PATCH] opengl: use texBox for rendering background texture fixes #4543 --- src/render/OpenGL.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 1c2ef26b..27720982 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -2042,10 +2042,8 @@ void CHyprOpenGLImpl::clearWithTex() { TEXIT = m_mMonitorBGTextures.find(m_RenderData.pMonitor); } - CBox box = {0, 0, m_RenderData.pMonitor->vecPixelSize.x, m_RenderData.pMonitor->vecPixelSize.y}; - if (TEXIT != m_mMonitorBGTextures.end()) - renderTexture(TEXIT->second, &box, 1); + renderTexture(TEXIT->second, &m_mMonitorRenderResources[m_RenderData.pMonitor].backgroundTexBox, 1); } void CHyprOpenGLImpl::destroyMonitorResources(CMonitor* pMonitor) {