Clear depth buffer in ui example
This commit is contained in:
parent
b9dd6c78a3
commit
2b1417160c
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue