mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 12:41:55 -07:00
screencopy: fix ~dtor being in monitorRenderResources map
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user