diff options
author | 2023-02-02 03:23:36 +1100 | |
---|---|---|
committer | 2023-02-02 03:23:36 +1100 | |
commit | f408dd83e27fb106ed60b66eafebc4015040bf26 (patch) | |
tree | 79780d8c55ac1e3cea679ceccfde26d2af05e910 /src/osd/sdl | |
parent | 942d07080a2f91b6a371e4f8b9027c99679d267e (diff) |
osd: Fixed BGFX crash on toggling fullscreen on Linux.
Also fixed draw13.cpp upsetting older versions of clang.
Diffstat (limited to 'src/osd/sdl')
-rw-r--r-- | src/osd/sdl/osdsdl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osd/sdl/osdsdl.cpp b/src/osd/sdl/osdsdl.cpp index 633abff3a3d..260fd74891a 100644 --- a/src/osd/sdl/osdsdl.cpp +++ b/src/osd/sdl/osdsdl.cpp @@ -703,6 +703,9 @@ void sdl_osd_interface::check_osd_inputs() // check for toggling fullscreen mode if (machine().ui_input().pressed(IPT_OSD_1)) { + // destroy the renderers first so that the render module can bounce if it depends on having a window handle + for (auto it = osd_common_t::window_list().rbegin(); osd_common_t::window_list().rend() != it; ++it) + (*it)->renderer_reset(); for (auto const &curwin : osd_common_t::window_list()) dynamic_cast<sdl_window_info &>(*curwin).toggle_full_screen(); } |