aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-01-28 00:32:54 +0000
committerVaxry <[email protected]>2024-01-28 00:32:54 +0000
commit3e93fdf7794416272430300426a62497d9d0b835 (patch)
tree10cad7c69109d194f642ee89d253fa6de812741b
parentbc7e488a4c7a4bfdd7bce66265fe8aea516fd2ed (diff)
downloadHyprland-3e93fdf7794416272430300426a62497d9d0b835.tar.gz
Hyprland-3e93fdf7794416272430300426a62497d9d0b835.zip
opengl: use texBox for rendering background texture
fixes #4543
-rw-r--r--src/render/OpenGL.cpp4
1 files changed, 1 insertions, 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) {