X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.cpp;h=a32b1e24361ad8675ff6daeea8c3023d973268ee;hp=223f4a3e6c29d7a5d20f83f244eba27503bba650;hb=d9c0c3792133f87cd224dc22be428be8ddc016d8;hpb=1ccfbc6588b569fdf1ac195f8999231169b7957d diff --git a/src/screen.cpp b/src/screen.cpp index 223f4a3..a32b1e2 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -93,9 +93,12 @@ Screen::Screen() m_debug_font_atlas = 0; m_no_quit_requested = true; + m_show_debug_font = true; m_view = NULL; ResizeViewport(800, 600); + + Clear(); Present(); @@ -454,7 +457,7 @@ struct fontvertex void Screen::DebugFontPrint(const char* str) { - if (!m_debug_font_atlas) return; + if (!m_debug_font_atlas || !m_show_debug_font) return; glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 41, -1, "Screen::DebugFontPrint()");