specify OpenGL if non-Metal Mac

This commit is contained in:
kanjitalk755 2021-02-28 18:56:58 +09:00
parent 623abaa243
commit 65772919a1
1 changed files with 3 additions and 1 deletions

View File

@ -785,7 +785,9 @@ static SDL_Surface * init_sdl_video(int width, int height, int bpp, Uint32 flags
SDL_SetHint(SDL_HINT_RENDER_DRIVER, render_driver);
}
else {
#ifdef WIN32
#ifdef __MACOSX__
SDL_SetHint(SDL_HINT_RENDER_DRIVER, window_flags & SDL_WINDOW_METAL ? "metal" : "opengl");
#elif defined(WIN32)
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software");
#else
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "");