mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 18:05:59 +01:00
toplevelexport: fix missing GL_READ_FRAMEBUFFER set in shm copy
ref #4165
This commit is contained in:
parent
e1ed8e11ca
commit
4e5d9b90c0
1 changed files with 4 additions and 0 deletions
|
@ -400,6 +400,10 @@ bool CToplevelExportProtocolManager::copyFrameShm(SScreencopyFrame* frame, times
|
||||||
|
|
||||||
outFB.bind();
|
outFB.bind();
|
||||||
|
|
||||||
|
#ifndef GLES2
|
||||||
|
glBindFramebuffer(GL_READ_FRAMEBUFFER, outFB.m_iFb);
|
||||||
|
#endif
|
||||||
|
|
||||||
glPixelStorei(GL_PACK_ALIGNMENT, 1);
|
glPixelStorei(GL_PACK_ALIGNMENT, 1);
|
||||||
|
|
||||||
glReadPixels(0, 0, frame->box.width, frame->box.height, PFORMAT->glFormat, PFORMAT->glType, data);
|
glReadPixels(0, 0, frame->box.width, frame->box.height, PFORMAT->glFormat, PFORMAT->glType, data);
|
||||||
|
|
Loading…
Reference in a new issue