diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp index 3c80eb18f0c..e0e618c52de 100644 --- a/src/protocols/ToplevelExport.cpp +++ b/src/protocols/ToplevelExport.cpp @@ -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);