diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-02-15 02:01:40 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-02-15 02:01:40 +0000 |
| commit | a42b984f51a00e88a13a45e1b5e9e3d4ec470254 (patch) | |
| tree | 2e04f804d6b2a0d1de0dbef57b2d2334d87a11bf /src/protocols/Screencopy.cpp | |
| parent | e5ac970d6eafa725167b3123e7f6c28aca20ff21 (diff) | |
screencopy: fix ~dtor being in monitorRenderResources map
Diffstat (limited to 'src/protocols/Screencopy.cpp')
| -rw-r--r-- | src/protocols/Screencopy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index b431bd3b..95542f34 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -213,7 +213,7 @@ void CScreencopyProtocolManager::captureOutput(wl_client* client, wl_resource* r g_pHyprRenderer->makeEGLCurrent(); if (g_pHyprOpenGL->m_mMonitorRenderResources.contains(PFRAME->pMonitor)) { - const auto RDATA = g_pHyprOpenGL->m_mMonitorRenderResources.at(PFRAME->pMonitor); + const auto& RDATA = g_pHyprOpenGL->m_mMonitorRenderResources.at(PFRAME->pMonitor); // bind the fb for its format. Suppress gl errors. #ifndef GLES2 glBindFramebuffer(GL_READ_FRAMEBUFFER, RDATA.offloadFB.m_iFb); |
