aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2024-08-18 22:40:21 +0200
committervaxerski <[email protected]>2024-08-18 22:40:21 +0200
commitbf611fbbf3183e6f96529d79189be56189a46e1b (patch)
treef9609eecc0c53d1645da50b6847c782fe1cbaeea
parent5afc4dc42e2409da62b7bcdf0ead90329e8d7a92 (diff)
downloadHyprland-bf611fbbf3183e6f96529d79189be56189a46e1b.tar.gz
Hyprland-bf611fbbf3183e6f96529d79189be56189a46e1b.zip
screencopy: nuke unused stuff
-rw-r--r--src/protocols/Screencopy.cpp11
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");