From 3db3baa19e55a039c1a64a29c8e9aaadea4e5f01 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 15 Jun 2025 12:11:28 +0200 Subject: opengl: use a stack for storing monitor transform enabled fixes #10487 --- src/render/OpenGL.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index fade4a9d..341ee575 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -195,7 +196,9 @@ class CHyprOpenGLImpl { int outerRound = -1 /* use round */); void renderTextureMatte(SP tex, const CBox& pBox, CFramebuffer& matte); - void setMonitorTransformEnabled(bool enabled); + void pushMonitorTransformEnabled(bool enabled); + void popMonitorTransformEnabled(); + void setRenderModifEnabled(bool enabled); void saveMatrix(); @@ -310,12 +313,14 @@ class CHyprOpenGLImpl { std::string m_extensions; bool m_fakeFrame = false; - bool m_endFrame = false; bool m_applyFinalShader = false; bool m_blend = false; bool m_offloadedFramebuffer = false; bool m_cmSupported = true; + bool m_monitorTransformEnabled = false; // do not modify directly + std::stack m_monitorTransformStack; + SShader m_finalScreenShader; CTimer m_globalTimer; GLuint m_currentProgram; -- cgit v1.2.3