mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 08:29:50 +01:00
render: use primitive end() only when no screen shader is present
This commit is contained in:
parent
9845f99b60
commit
5a64c73e05
1 changed files with 4 additions and 1 deletions
|
@ -199,7 +199,10 @@ void CHyprOpenGLImpl::end() {
|
||||||
|
|
||||||
blend(false);
|
blend(false);
|
||||||
|
|
||||||
|
if (m_sFinalScreenShader.program < 1)
|
||||||
renderTexturePrimitive(m_RenderData.pCurrentMonData->primaryFB.m_cTex, &monbox);
|
renderTexturePrimitive(m_RenderData.pCurrentMonData->primaryFB.m_cTex, &monbox);
|
||||||
|
else
|
||||||
|
renderTexture(m_RenderData.pCurrentMonData->primaryFB.m_cTex, &monbox, 1.f);
|
||||||
|
|
||||||
blend(true);
|
blend(true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue