From 547305c7ed02c37b68773b2ccb6fb7f702898f0a Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 20 Jul 2023 13:49:28 +0200 Subject: opengl: adjust blend and reduce the usage of clear --- src/render/OpenGL.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/render/OpenGL.hpp') diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index ac5c3e6b..db8b37d1 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -111,6 +111,8 @@ class CHyprOpenGLImpl { void setMatrixScaleTranslate(const Vector2D& translate, const float& scale); void restoreMatrix(); + void blend(bool enabled); + void makeWindowSnapshot(CWindow*); void makeRawWindowSnapshot(CWindow*, CFramebuffer*); void makeLayerSnapshot(SLayerSurface*); @@ -159,6 +161,7 @@ class CHyprOpenGLImpl { bool m_bFakeFrame = false; bool m_bEndFrame = false; bool m_bApplyFinalShader = false; + bool m_bBlend = false; CShader m_sFinalScreenShader; CTimer m_tGlobalTimer; -- cgit v1.2.3