From 2b1417160c392c7143325d0bc8cc3286f659ee70 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 25 Feb 2021 14:17:51 +0300 Subject: [PATCH] Clear depth buffer in ui example --- examples/ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ui.cpp b/examples/ui.cpp index 1478bb8f..a1c59939 100644 --- a/examples/ui.cpp +++ b/examples/ui.cpp @@ -61,7 +61,7 @@ struct ui_example void ui_example::present() { 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; rt.framebuffer = &gfx::framebuffer::null();