mojoshader_opengl.c
changeset 1243 0092b6c389d4
parent 1237 da180fe5b4b7
child 1245 ad9a16c8b023
--- a/mojoshader_opengl.c	Sat Apr 18 20:00:35 2020 -0400
+++ b/mojoshader_opengl.c	Sun Apr 19 11:49:16 2020 -0400
@@ -322,6 +322,9 @@
 #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 @@
     } // if
 
     return (combined >= ((x << 16) | (y << 8) | z));
+#endif
 } // macosx_version_atleast
 #endif