3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-22 16:55:22 +00:00

framebuffer: revert viewport (#12842)

to much stuff are relying on the viewport being set like this, just
revert it to not regress further. this needs a overhaul.
This commit is contained in:
Tom Englund
2026-01-04 11:44:19 +01:00
committed by GitHub
parent 583c4074a5
commit 0b3b012817

View File

@ -78,7 +78,7 @@ void CFramebuffer::bind() {
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, m_fb);
if (g_pHyprOpenGL)
g_pHyprOpenGL->setViewport(0, 0, m_size.x, m_size.y);
g_pHyprOpenGL->setViewport(0, 0, g_pHyprOpenGL->m_renderData.pMonitor->m_pixelSize.x, g_pHyprOpenGL->m_renderData.pMonitor->m_pixelSize.y);
else
glViewport(0, 0, m_size.x, m_size.y);
}