Skip to content

Commit

Permalink
clear color framebuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed May 3, 2024
1 parent ba4d958 commit 8537c8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ruisapp/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ application::instance_type application::instance;
void application::render()
{
// TODO: render only if needed?
this->gui.context.get().renderer.get().clear_framebuffer();
this->gui.context.get().renderer.get().clear_framebuffer_color();

// no clear of depth and stencil buffers, it will be done by individual widgets if needed

this->gui.render(this->gui.context.get().renderer.get().initial_matrix);

Expand Down

0 comments on commit 8537c8f

Please sign in to comment.