render: use primitive end() only when no screen shader is present

This commit is contained in:
vaxerski 2023-07-23 15:54:23 +02:00
parent 9845f99b60
commit 5a64c73e05

View file

@ -199,7 +199,10 @@ void CHyprOpenGLImpl::end() {
blend(false);
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);