From 8ebfeffdc86c71f91f648d86da376c0851181c8c Mon Sep 17 00:00:00 2001 From: JiDe Zhang Date: Tue, 31 Oct 2023 17:13:12 +0800 Subject: Remove unnecessary code Not needs set GL_DEPTH_TEST, Because when rendering to a framebuffer that has no depth buffer, depth testing always behaves as though the test is disabled, The initial value for each capability with the exception of GL_DITHER is GL_FALSE. --- render/gles2/pass.c | 1 - 1 file changed, 1 deletion(-) diff --git a/render/gles2/pass.c b/render/gles2/pass.c index 0bbc8bd5..768e81de 100644 --- a/render/gles2/pass.c +++ b/render/gles2/pass.c @@ -278,7 +278,6 @@ struct wlr_gles2_render_pass *begin_gles2_buffer_pass(struct wlr_gles2_buffer *b glViewport(0, 0, wlr_buffer->width, wlr_buffer->height); glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glDisable(GL_SCISSOR_TEST); - glDisable(GL_DEPTH_TEST); pop_gles2_debug(renderer); return pass; -- cgit v1.2.3