summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-07-20 13:49:28 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-07-20 13:49:28 +0200
commit547305c7ed02c37b68773b2ccb6fb7f702898f0a (patch)
tree1f1f47781d7679f53f720f3709196145e65bf9d5 /src/render/OpenGL.hpp
parentb65adf8d4a0c239f5aa44425d14d1fe14f675643 (diff)
opengl: adjust blend and reduce the usage of clear
Diffstat (limited to 'src/render/OpenGL.hpp')
-rw-r--r--src/render/OpenGL.hpp3
1 files changed, 3 insertions, 0 deletions
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;