From f099a82eb2b2a6bb64cd51d98ab027f4ce45078c Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 30 Aug 2026 17:59:14 +0200 Subject: feat: little pepe --- src/core/application.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/application.cpp b/src/core/application.cpp index 7047d6a..54ee788 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -113,15 +113,17 @@ namespace Hsdbg auto Application::render() -> void { - m_ui->begin_frame(); - m_ui->draw(*m_debugger); - + // clear the whole framebuffer at the very start of the frame, before any + // drawing, so nothing from the previous frame can survive underneath glViewport(0, 0, static_cast(m_window->framebuffer_width()), static_cast(m_window->framebuffer_height())); + glDisable(GL_SCISSOR_TEST); glClearColor(0.05f, 0.05f, 0.06f, 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + m_ui->begin_frame(); + m_ui->draw(*m_debugger); m_ui->end_frame(); } } -- cgit v1.3