diff options
author | Vaxry <[email protected]> | 2023-12-05 14:59:12 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2023-12-05 14:59:12 +0000 |
commit | da863459c49c8b9a82e6a1180c2592a2b63feccd (patch) | |
tree | 955aad80c1f9d3b83e12683fca130c023d722ad6 | |
parent | 83248b6936c00ddef6a39fa31a37949ca1a34ffe (diff) | |
download | Hyprland-da863459c49c8b9a82e6a1180c2592a2b63feccd.tar.gz Hyprland-da863459c49c8b9a82e6a1180c2592a2b63feccd.zip |
screencopy: fix legacyrenderer builds
fixes #4044
-rw-r--r-- | src/protocols/Screencopy.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index e5aaab62..8537a701 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -455,7 +455,11 @@ bool CScreencopyProtocolManager::copyFrameShm(SScreencopyFrame* frame, timespec* g_pHyprOpenGL->renderTexture(sourceTex, &monbox, 1); g_pHyprOpenGL->setMonitorTransformEnabled(true); +#ifndef GLES2 glBindFramebuffer(GL_READ_FRAMEBUFFER, fb.m_iFb); +#else + glBindFramebuffer(GL_FRAMEBUFFER, fb.m_iFb); +#endif const auto PFORMAT = g_pHyprOpenGL->getPixelFormatFromDRM(format); if (!PFORMAT) { |