Skip to content

OpenGL macOS xcode27.0 b1

Alex Soto edited this page Jun 9, 2026 · 2 revisions

#OpenGL.framework

diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/CGLIOSurface.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/CGLIOSurface.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/CGLIOSurface.h	2026-04-19 00:58:04
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/CGLIOSurface.h	2026-05-21 10:55:35
@@ -13,9 +13,13 @@
 extern "C" {
 #endif
 
-OPENGL_ASSUME_NONNULL_BEGIN
-
+#if defined(__swift__) && __has_include(<IOSurface/IOSurfaceRef.h>)
+#include <IOSurface/IOSurfaceRef.h>
+#else
 typedef struct  OPENGL_BRIDGED_TYPE(id) __IOSurface *IOSurfaceRef OPENGL_SWIFT_NAME(IOSurfaceRef);
+#endif
+
+OPENGL_ASSUME_NONNULL_BEGIN
 
 /*!
             @function  CGLTexImageIOSurface2D

Clone this wiki locally