mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
Merge pull request #4095 from dslegend/master
Disable setting the SDL_WINDOW_OPENGL extra flag if -video none
This commit is contained in:
commit
98e4553718
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user