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:
parent
22df8d3847
commit
8ebfeffdc8
|
@ -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);
|
glViewport(0, 0, wlr_buffer->width, wlr_buffer->height);
|
||||||
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
glDisable(GL_SCISSOR_TEST);
|
glDisable(GL_SCISSOR_TEST);
|
||||||
glDisable(GL_DEPTH_TEST);
|
|
||||||
pop_gles2_debug(renderer);
|
pop_gles2_debug(renderer);
|
||||||
|
|
||||||
return pass;
|
return pass;
|
||||||
|
|
Loading…
Reference in New Issue