opengl: use texBox for rendering background texture

fixes #4543
This commit is contained in:
Vaxry 2024-01-28 00:32:54 +00:00
parent bc7e488a4c
commit 3e93fdf779
1 changed files with 1 additions and 3 deletions

View File

@ -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) {