diff options
author | vaxerski <[email protected]> | 2024-08-18 22:40:21 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2024-08-18 22:40:21 +0200 |
commit | bf611fbbf3183e6f96529d79189be56189a46e1b (patch) | |
tree | f9609eecc0c53d1645da50b6847c782fe1cbaeea | |
parent | 5afc4dc42e2409da62b7bcdf0ead90329e8d7a92 (diff) | |
download | Hyprland-bf611fbbf3183e6f96529d79189be56189a46e1b.tar.gz Hyprland-bf611fbbf3183e6f96529d79189be56189a46e1b.zip |
screencopy: nuke unused stuff
-rw-r--r-- | src/protocols/Screencopy.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index f246f6dd..8a7fd567 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -38,17 +38,6 @@ CScreencopyFrame::CScreencopyFrame(SP<CZwlrScreencopyFrameV1> resource_, int32_t g_pHyprRenderer->makeEGLCurrent(); - if (g_pHyprOpenGL->m_mMonitorRenderResources.contains(pMonitor)) { - const auto& RDATA = g_pHyprOpenGL->m_mMonitorRenderResources.at(pMonitor); - // bind the fb for its format. Suppress gl errors. -#ifndef GLES2 - glBindFramebuffer(GL_READ_FRAMEBUFFER, RDATA.offloadFB.m_iFb); -#else - glBindFramebuffer(GL_FRAMEBUFFER, RDATA.offloadFB.m_iFb); -#endif - } else - LOGM(ERR, "No RDATA in screencopy???"); - shmFormat = g_pHyprOpenGL->getPreferredReadFormat(pMonitor); if (shmFormat == DRM_FORMAT_INVALID) { LOGM(ERR, "No format supported by renderer in capture output"); |