aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-07-23 15:54:23 +0200
committervaxerski <[email protected]>2023-07-23 15:54:27 +0200
commit5a64c73e053f4566b8c4b03587b01d6007fb5412 (patch)
treed7bce3fa7713bb663745975d6c1f9a0fbca75ef5 /src/render/OpenGL.cpp
parent9845f99b607b8b0d547b1fda81e0597d75addfba (diff)
downloadHyprland-5a64c73e053f4566b8c4b03587b01d6007fb5412.tar.gz
Hyprland-5a64c73e053f4566b8c4b03587b01d6007fb5412.zip
render: use primitive end() only when no screen shader is present
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index c52ded7f..f9f3f34f 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -199,7 +199,10 @@ void CHyprOpenGLImpl::end() {
blend(false);
- renderTexturePrimitive(m_RenderData.pCurrentMonData->primaryFB.m_cTex, &monbox);
+ if (m_sFinalScreenShader.program < 1)
+ renderTexturePrimitive(m_RenderData.pCurrentMonData->primaryFB.m_cTex, &monbox);
+ else
+ renderTexture(m_RenderData.pCurrentMonData->primaryFB.m_cTex, &monbox, 1.f);
blend(true);