diff --git a/libs/sdl2/source/main.cpp b/libs/sdl2/source/main.cpp index cd1a5592..8aa08554 100644 --- a/libs/sdl2/source/main.cpp +++ b/libs/sdl2/source/main.cpp @@ -36,6 +36,10 @@ int main() try context.vsync = [&](bool on){ window.vsync(on); }; auto application = factory->create(options, context); + + if (!application) + return EXIT_FAILURE; + application->on_event(app::resize_event{window.size()}); window.show();