Clear depth buffer in ui example

This commit is contained in:
Nikita Lisitsa 2021-02-25 14:17:51 +03:00
parent b9dd6c78a3
commit 2b1417160c

View file

@ -61,7 +61,7 @@ struct ui_example
void ui_example::present() void ui_example::present()
{ {
gl::ClearColor(0.8f, 0.8f, 0.8f, 1.f); gl::ClearColor(0.8f, 0.8f, 0.8f, 1.f);
gl::Clear(gl::COLOR_BUFFER_BIT); gl::Clear(gl::COLOR_BUFFER_BIT | gl::DEPTH_BUFFER_BIT);
gfx::render_target rt; gfx::render_target rt;
rt.framebuffer = &gfx::framebuffer::null(); rt.framebuffer = &gfx::framebuffer::null();