mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-07 19:30:30 +00:00
added SDL version check
This commit is contained in:
parent
09046e0a2f
commit
39cbc73a9f
@ -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");
|
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;
|
if (MetalIsAvailable()) window_flags |= SDL_WINDOW_METAL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user