renderer: improve api around new framebuffer changes

ref #8325
This commit is contained in:
Vaxry
2024-11-02 15:26:25 +00:00
parent 32b18179dd
commit 40081cb330
6 changed files with 68 additions and 44 deletions

View File

@@ -253,7 +253,7 @@ bool CScreencopyFrame::copyShm() {
g_pHyprOpenGL->setMonitorTransformEnabled(false);
#ifndef GLES2
glBindFramebuffer(GL_READ_FRAMEBUFFER, fb.m_iFb);
glBindFramebuffer(GL_READ_FRAMEBUFFER, fb.getFBID());
#else
glBindFramebuffer(GL_FRAMEBUFFER, fb.m_iFb);
#endif