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

@@ -279,7 +279,7 @@ bool CToplevelExportFrame::copyShm(timespec* now) {
outFB.bind();
#ifndef GLES2
glBindFramebuffer(GL_READ_FRAMEBUFFER, outFB.m_iFb);
glBindFramebuffer(GL_READ_FRAMEBUFFER, outFB.getFBID());
#endif
glPixelStorei(GL_PACK_ALIGNMENT, 1);