summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/mac/window.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2022-03-16 04:46:13 +1100
committer Vas Crabb <vas@vastheman.com>2022-03-16 04:46:13 +1100
commit0e457ec6ea3ac0fabc89fcad57fdbf7fd39ec825 (patch)
treed0b2d7f53209967b3a594e83b98ebe6985822e20 /src/osd/mac/window.cpp
parent394e5f18b6fb034b04fae0f35575dc24a4a1d620 (diff)
Revert "More BGFX stability improvements (missing files + multi-window) (#9410)"
This reverts commit f5b75b74393646d1dc082ec807279451dc481854.
Diffstat (limited to 'src/osd/mac/window.cpp')
-rw-r--r--src/osd/mac/window.cpp44
1 files changed, 9 insertions, 35 deletions
diff --git a/src/osd/mac/window.cpp b/src/osd/mac/window.cpp
index ea2adbb631f..4a150e54a35 100644
--- a/src/osd/mac/window.cpp
+++ b/src/osd/mac/window.cpp
@@ -69,43 +69,17 @@ bool mac_osd_interface::window_init()
{
osd_printf_verbose("Enter macwindow_init\n");
- // initialize the renderer
- const int fallbacks[VIDEO_MODE_COUNT] = {
- -1, // NONE -> no fallback
- -1, // No GDI on macOS
- VIDEO_MODE_OPENGL, // BGFX -> OpenGL
- -1, // OpenGL -> no fallback
- -1, // No SDL2ACCEL on macOS
- -1, // No D3D on macOS
- -1 // No SOFT on macOS
- };
-
- int current_mode = video_config.mode;
- while (current_mode != VIDEO_MODE_NONE)
- {
- bool error = false;
- switch(current_mode)
- {
- case VIDEO_MODE_BGFX:
- error = renderer_bgfx::init(machine());
- break;
- case VIDEO_MODE_OPENGL:
- renderer_ogl::init(machine());
- break;
- default:
- fatalerror("Unknown video mode.");
- break;
- }
- if (error)
- {
- current_mode = fallbacks[current_mode];
- }
- else
- {
+ // initialize the drawers
+
+ switch (video_config.mode)
+ {
+ case VIDEO_MODE_BGFX:
+ renderer_bgfx::init(machine());
+ break;
+ case VIDEO_MODE_OPENGL:
+ renderer_ogl::init(machine());
break;
- }
}
- video_config.mode = current_mode;
// set up the window list
osd_printf_verbose("Leave macwindow_init\n");