Skip to content

Commit

Permalink
toplevelexport: fix missing GL_READ_FRAMEBUFFER set in shm copy
Browse files Browse the repository at this point in the history
ref #4165
  • Loading branch information
vaxerski committed Dec 15, 2023
1 parent e1ed8e1 commit 4e5d9b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/protocols/ToplevelExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ bool CToplevelExportProtocolManager::copyFrameShm(SScreencopyFrame* frame, times

outFB.bind();

#ifndef GLES2
glBindFramebuffer(GL_READ_FRAMEBUFFER, outFB.m_iFb);
#endif

glPixelStorei(GL_PACK_ALIGNMENT, 1);

glReadPixels(0, 0, frame->box.width, frame->box.height, PFORMAT->glFormat, PFORMAT->glType, data);
Expand Down

0 comments on commit 4e5d9b9

Please sign in to comment.