From 25adf42f708d8abb40a7fc84a2270d3a74571449 Mon Sep 17 00:00:00 2001 From: Dustin Stahlback Date: Tue, 9 Oct 2018 08:45:09 -0500 Subject: Disable setting the SDL_WINDOW_OPENGL extra flag if -video none is set. This allows a true headless run when the environment variable SDL_VIDEODRIVER=dummy is set prior to mame/mess execution. --- src/osd/sdl/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/sdl/window.cpp b/src/osd/sdl/window.cpp index e7ef73f4edc..030804f5db8 100644 --- a/src/osd/sdl/window.cpp +++ b/src/osd/sdl/window.cpp @@ -694,7 +694,7 @@ int sdl_window_info::complete_create() * */ osd_printf_verbose("Enter sdl_info::create\n"); - if (renderer().has_flags(osd_renderer::FLAG_NEEDS_OPENGL)) + if (renderer().has_flags(osd_renderer::FLAG_NEEDS_OPENGL) && !video_config.novideo) { SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); -- cgit v1.2.3