specify OpenGL if non-Metal Mac
This commit is contained in:
parent
623abaa243
commit
65772919a1
|
@ -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, "");
|
||||
|
|
Loading…
Reference in New Issue