mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 18:45:59 +01:00
parent
83248b6936
commit
da863459c4
1 changed files with 4 additions and 0 deletions
|
@ -455,7 +455,11 @@ bool CScreencopyProtocolManager::copyFrameShm(SScreencopyFrame* frame, timespec*
|
||||||
g_pHyprOpenGL->renderTexture(sourceTex, &monbox, 1);
|
g_pHyprOpenGL->renderTexture(sourceTex, &monbox, 1);
|
||||||
g_pHyprOpenGL->setMonitorTransformEnabled(true);
|
g_pHyprOpenGL->setMonitorTransformEnabled(true);
|
||||||
|
|
||||||
|
#ifndef GLES2
|
||||||
glBindFramebuffer(GL_READ_FRAMEBUFFER, fb.m_iFb);
|
glBindFramebuffer(GL_READ_FRAMEBUFFER, fb.m_iFb);
|
||||||
|
#else
|
||||||
|
glBindFramebuffer(GL_FRAMEBUFFER, fb.m_iFb);
|
||||||
|
#endif
|
||||||
|
|
||||||
const auto PFORMAT = g_pHyprOpenGL->getPixelFormatFromDRM(format);
|
const auto PFORMAT = g_pHyprOpenGL->getPixelFormatFromDRM(format);
|
||||||
if (!PFORMAT) {
|
if (!PFORMAT) {
|
||||||
|
|
Loading…
Reference in a new issue