mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(SDL2) Fix jump to label crosses initialization of const char* video_driver
This commit is contained in:
parent
aeb0781398
commit
15b9bd47b9
@ -367,8 +367,11 @@ static void *sdl2_gfx_init(const video_info_t *video,
|
||||
{
|
||||
int i;
|
||||
unsigned flags;
|
||||
sdl2_video_t *vid = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
sdl2_video_t *vid = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
#if defined(HAVE_X11) || defined(HAVE_WAYLAND)
|
||||
const char *video_driver = NULL;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_X11
|
||||
XInitThreads();
|
||||
@ -444,7 +447,7 @@ static void *sdl2_gfx_init(const video_info_t *video,
|
||||
sdl2_set_handles(vid->window, RARCH_DISPLAY_OSX);
|
||||
#else
|
||||
#if defined(HAVE_X11) || defined(HAVE_WAYLAND)
|
||||
const char *video_driver = SDL_GetCurrentVideoDriver();
|
||||
video_driver = SDL_GetCurrentVideoDriver();
|
||||
#endif
|
||||
#ifdef HAVE_X11
|
||||
if (strcmp(video_driver, "x11") == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user