summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2024-01-11 13:15:20 +0100
committervaxerski <vaxry@vaxry.net>2024-01-11 14:07:28 +0100
commit6b92144f15117f9f7d93fe9867d6ec849d9abce1 (patch)
tree7513d63d76669a5cd84ea4b4a84470732c73560e /src/render/OpenGL.cpp
parent8d31c84483be7cc6f909d73c6ecd4c0b4bdc3360 (diff)
surface: avoid spam of window surfaces with scale and transform events
fixes #4408
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 2dd4ca0e..55a48a46 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -2019,8 +2019,10 @@ 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())
- renderTexturePrimitive(TEXIT->second, &m_mMonitorRenderResources[m_RenderData.pMonitor].backgroundTexBox);
+ renderTexture(TEXIT->second, &box, 1);
}
void CHyprOpenGLImpl::destroyMonitorResources(CMonitor* pMonitor) {