Skip to content

Commit

Permalink
Skip Gestalt when min version is 10.5+
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Apr 19, 2020
1 parent ea04951 commit 33c834c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoshader_opengl.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 33c834c

Please sign in to comment.