diff options
| author | hachem <im@hachem.wtf> | 2026-08-30 17:59:14 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-30 17:59:14 +0200 |
| commit | f099a82eb2b2a6bb64cd51d98ab027f4ce45078c (patch) | |
| tree | ac83cedd80afb500b63ff8e517f6e24939742f9c /src/core | |
| parent | 5074ae48a95f96ec3370e464bb3c7242a3455411 (diff) | |
feat: little pepe
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/application.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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<GLsizei>(m_window->framebuffer_width()), static_cast<GLsizei>(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(); } } |
