Fix: [SDL2] Correct name of the video driver in debug log

SDL_GetVideoDriver(0) returns name of first video driver included in
the library, not the driver currently used.
SDL_GetCurrentVideoDriver() does what we want here.
pull/132/head
xdavidwu 4 years ago committed by Charles Pigott
parent d7a928a08b
commit 8fe38afd2b

@ -647,7 +647,7 @@ const char *VideoDriver_SDL::Start(const char * const *parm)
return SDL_GetError();
}
const char *dname = SDL_GetVideoDriver(0);
const char *dname = SDL_GetCurrentVideoDriver();
DEBUG(driver, 1, "SDL2: using driver '%s'", dname);
MarkWholeScreenDirty();

Loading…
Cancel
Save