diff --git a/Samples/basic/bitmapfont/src/main.cpp b/Samples/basic/bitmapfont/src/main.cpp index ecf2967c6..d61443753 100644 --- a/Samples/basic/bitmapfont/src/main.cpp +++ b/Samples/basic/bitmapfont/src/main.cpp @@ -115,12 +115,12 @@ int main(int /*argc*/, char** /*argv*/) Backend::PresentFrame(); } - // Shutdown RmlUi. - Rml::Shutdown(); - // Destroy the font interface before taking down the shell, this way font textures are properly released through the render interface. font_interface.reset(); + // Shutdown RmlUi. + Rml::Shutdown(); + Backend::Shutdown(); Shell::Shutdown();