summaryrefslogtreecommitdiff
path: root/src/protocols/ToplevelExport.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-15 02:01:40 +0000
committerVaxry <vaxry@vaxry.net>2024-02-15 02:01:40 +0000
commita42b984f51a00e88a13a45e1b5e9e3d4ec470254 (patch)
tree2e04f804d6b2a0d1de0dbef57b2d2334d87a11bf /src/protocols/ToplevelExport.cpp
parente5ac970d6eafa725167b3123e7f6c28aca20ff21 (diff)
screencopy: fix ~dtor being in monitorRenderResources map
Diffstat (limited to 'src/protocols/ToplevelExport.cpp')
-rw-r--r--src/protocols/ToplevelExport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp
index 40265b26..e7ea787d 100644
--- a/src/protocols/ToplevelExport.cpp
+++ b/src/protocols/ToplevelExport.cpp
@@ -180,7 +180,7 @@ void CToplevelExportProtocolManager::captureToplevel(wl_client* client, wl_resou
g_pHyprRenderer->makeEGLCurrent();
if (g_pHyprOpenGL->m_mMonitorRenderResources.contains(PMONITOR)) {
- const auto RDATA = g_pHyprOpenGL->m_mMonitorRenderResources.at(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);