Skip to content

Commit

Permalink
fix(shell): fully clear window before hide
Browse files Browse the repository at this point in the history
  • Loading branch information
std-microblock committed Feb 5, 2025
1 parent e12176f commit e999147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ void render_target::start_loop() {
if (should_loop_stop_hide_as_close) {
should_loop_stop_hide_as_close = false;
glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
glFlush();
glfwSwapBuffers(window);
glfwSwapBuffers(window);
hide();
{
Expand Down

0 comments on commit e999147

Please sign in to comment.