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:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user