added SDL version check

This commit is contained in:
kanjitalk755 2021-02-25 14:49:54 +09:00
parent 09046e0a2f
commit 39cbc73a9f
1 changed files with 1 additions and 1 deletions

View File

@ -764,7 +764,7 @@ static SDL_Surface * init_sdl_video(int width, int height, int bpp, Uint32 flags
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, PrefsFindBool("scale_nearest") ? "nearest" : "linear");
#ifdef __MACOSX__
#if defined(__MACOSX__) && SDL_VERSION_ATLEAST(2,0,14)
if (MetalIsAvailable()) window_flags |= SDL_WINDOW_METAL;
#endif