vulkan: use the right exit function when vulkan fails to initialize.

(fixes: #1833)
This commit is contained in:
goeiecool9999 2026-04-04 16:45:00 +02:00
parent c16936d381
commit b3e310220e

View File

@ -43,7 +43,7 @@ VulkanCanvas::VulkanCanvas(wxWindow* parent, const wxSize& size, bool is_main_wi
auto msg = formatWxString(_("Error when initializing Vulkan renderer:\n{}"), ex.what());
wxMessageDialog dialog(this, msg, _("Error"), wxOK | wxCENTRE | wxICON_ERROR);
dialog.ShowModal();
exit(0);
_exit(0);
}
wxWindow::EnableTouchEvents(wxTOUCH_PAN_GESTURES);