From 33c834c4f54a89af37e5a8cfc35f758185862800 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Sun, 19 Apr 2020 11:49:16 -0400 Subject: [PATCH] Skip Gestalt when min version is 10.5+ --- mojoshader_opengl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mojoshader_opengl.c b/mojoshader_opengl.c index 8e0b861e..8ee34455 100644 --- a/mojoshader_opengl.c +++ b/mojoshader_opengl.c @@ -322,6 +322,9 @@ static void set_error(const char *str) #if PLATFORM_MACOSX static inline int macosx_version_atleast(int x, int y, int z) { +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 + return 1; +#else static int checked = 0; static int combined = 0; @@ -368,6 +371,7 @@ static inline int macosx_version_atleast(int x, int y, int z) } // if return (combined >= ((x << 16) | (y << 8) | z)); +#endif } // macosx_version_atleast #endif