mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-07 20:26:36 +00:00
Only init Video if it isn't already.
This commit is contained in:
parent
503c51d633
commit
c05a5c9fdd
@ -83,6 +83,9 @@ bool sdlwrap_init(void)
|
||||
#if SDL_MODERN
|
||||
return SDL_VideoInit(NULL) == 0;
|
||||
#else
|
||||
if (SDL_WasInit(SDL_INIT_VIDEO))
|
||||
return true;
|
||||
|
||||
return SDL_Init(SDL_INIT_VIDEO) == 0;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user