diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-06-15 12:11:28 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-06-15 12:11:28 +0200 |
| commit | 3db3baa19e55a039c1a64a29c8e9aaadea4e5f01 (patch) | |
| tree | 018b367a9c57b2d2fca0e89a435e29d0b22444b0 /src/render/pass/TexPassElement.cpp | |
| parent | 57d20a1bf67676dc63347e4f1df2e4b66133733f (diff) | |
opengl: use a stack for storing monitor transform enabled
fixes #10487
Diffstat (limited to 'src/render/pass/TexPassElement.cpp')
| -rw-r--r-- | src/render/pass/TexPassElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/pass/TexPassElement.cpp b/src/render/pass/TexPassElement.cpp index e6f4d052..c4b00220 100644 --- a/src/render/pass/TexPassElement.cpp +++ b/src/render/pass/TexPassElement.cpp @@ -9,11 +9,11 @@ CTexPassElement::CTexPassElement(const CTexPassElement::SRenderData& data_) : m_ } void CTexPassElement::draw(const CRegion& damage) { - g_pHyprOpenGL->m_endFrame = m_data.flipEndFrame; + g_pHyprOpenGL->pushMonitorTransformEnabled(m_data.flipEndFrame); CScopeGuard x = {[this]() { // - g_pHyprOpenGL->m_endFrame = false; + g_pHyprOpenGL->popMonitorTransformEnabled(); g_pHyprOpenGL->m_renderData.clipBox = {}; if (m_data.replaceProjection) g_pHyprOpenGL->m_renderData.monitorProjection = g_pHyprOpenGL->m_renderData.pMonitor->m_projMatrix; |
