mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-30 00:05:59 +01:00
renderer: properly set currentFB on snapshot renders
This commit is contained in:
parent
931927de29
commit
56dec1c6a2
1 changed files with 6 additions and 0 deletions
|
@ -1495,6 +1495,8 @@ void CHyprOpenGLImpl::makeRawWindowSnapshot(CWindow* pWindow, CFramebuffer* pFra
|
||||||
|
|
||||||
pFramebuffer->bind();
|
pFramebuffer->bind();
|
||||||
|
|
||||||
|
m_RenderData.currentFB = pFramebuffer;
|
||||||
|
|
||||||
clear(CColor(0, 0, 0, 0)); // JIC
|
clear(CColor(0, 0, 0, 0)); // JIC
|
||||||
|
|
||||||
g_pHyprRenderer->renderWindow(pWindow, PMONITOR, &now, false, RENDER_PASS_ALL, true);
|
g_pHyprRenderer->renderWindow(pWindow, PMONITOR, &now, false, RENDER_PASS_ALL, true);
|
||||||
|
@ -1553,6 +1555,8 @@ void CHyprOpenGLImpl::makeWindowSnapshot(CWindow* pWindow) {
|
||||||
|
|
||||||
PFRAMEBUFFER->bind();
|
PFRAMEBUFFER->bind();
|
||||||
|
|
||||||
|
m_RenderData.currentFB = PFRAMEBUFFER;
|
||||||
|
|
||||||
clear(CColor(0, 0, 0, 0)); // JIC
|
clear(CColor(0, 0, 0, 0)); // JIC
|
||||||
|
|
||||||
g_pHyprRenderer->renderWindow(pWindow, PMONITOR, &now, !pWindow->m_bX11DoesntWantBorders, RENDER_PASS_ALL);
|
g_pHyprRenderer->renderWindow(pWindow, PMONITOR, &now, !pWindow->m_bX11DoesntWantBorders, RENDER_PASS_ALL);
|
||||||
|
@ -1598,6 +1602,8 @@ void CHyprOpenGLImpl::makeLayerSnapshot(SLayerSurface* pLayer) {
|
||||||
|
|
||||||
PFRAMEBUFFER->bind();
|
PFRAMEBUFFER->bind();
|
||||||
|
|
||||||
|
m_RenderData.currentFB = PFRAMEBUFFER;
|
||||||
|
|
||||||
clear(CColor(0, 0, 0, 0)); // JIC
|
clear(CColor(0, 0, 0, 0)); // JIC
|
||||||
|
|
||||||
timespec now;
|
timespec now;
|
||||||
|
|
Loading…
Reference in a new issue