Exit if application is null in sdl2 backend

This commit is contained in:
Nikita Lisitsa 2023-07-21 01:30:12 +03:00
parent f5f094bdc6
commit bd826103d3

View file

@ -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();