diff options
author | JiDe Zhang <zccrs@live.com> | 2023-10-31 17:13:12 +0800 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-10-31 15:59:38 +0000 |
commit | 8ebfeffdc86c71f91f648d86da376c0851181c8c (patch) | |
tree | 3c6a741dc1f65c7fe142b9663af1fb23f88234f6 /render/gles2 | |
parent | 22df8d38478566d0e4fe741ef57f7263ba610a01 (diff) |
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.
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/pass.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |