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.
This commit is contained in:
JiDe Zhang 2023-10-31 17:13:12 +08:00 committed by Alexander Orzechowski
parent 22df8d3847
commit 8ebfeffdc8

View File

@ -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;