aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-07-25 13:33:08 +0200
committervaxerski <[email protected]>2023-07-25 13:33:08 +0200
commita9b8e2159c2813a6951d0b0186fbb7f2f8554d3e (patch)
treebff5261bd23d425ef01381dbe57b5cc7f19beea4
parent4173d2ccf6d1b39581b6e50b76f1cd2c707cb845 (diff)
downloadHyprland-a9b8e2159c2813a6951d0b0186fbb7f2f8554d3e.tar.gz
Hyprland-a9b8e2159c2813a6951d0b0186fbb7f2f8554d3e.zip
renderer: reset scissor after renderTexturePrimitive
-rw-r--r--src/render/OpenGL.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index c0e070bd..5a436414 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -771,6 +771,8 @@ void CHyprOpenGLImpl::renderTexturePrimitive(const CTexture& tex, wlr_box* pBox)
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
}
+ scissor((wlr_box*)nullptr);
+
glDisableVertexAttribArray(shader->posAttrib);
glDisableVertexAttribArray(shader->texAttrib);