Skip to content

CoreImage macOS xcode14.3 beta1

Alex Soto edited this page Feb 16, 2023 · 2 revisions

#CoreImage.framework

diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h	2022-11-10 19:16:17
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIContext.h	2023-02-11 16:43:32
@@ -12,7 +12,13 @@
 #import <CoreImage/CoreImageDefines.h>
 #import <CoreVideo/CoreVideo.h>
 
-#if TARGET_OS_IPHONE && (TARGET_OS_EMBEDDED || TARGET_OS_SIMULATOR || !TARGET_OS_MACCATALYST)
+#if TARGET_OS_IPHONE && !TARGET_OS_MACCATALYST
+  #define COREIMAGE_SUPPORTS_OPENGLES 1
+#else
+  #define COREIMAGE_SUPPORTS_OPENGLES 0
+#endif 
+
+#if COREIMAGE_SUPPORTS_OPENGLES
  #import <OpenGLES/EAGL.h>
 #elif TARGET_OS_OSX
  #import <OpenGL/CGLTypes.h>
@@ -155,7 +161,7 @@
  *
  * The [context drawImage:...] render methods will render to the EAGLContext.
  */
-#if TARGET_OS_IPHONE && (TARGET_OS_EMBEDDED || TARGET_OS_SIMULATOR || !TARGET_OS_MACCATALYST)
+#if COREIMAGE_SUPPORTS_OPENGLES
 + (CIContext *)contextWithEAGLContext:(EAGLContext *)eaglContext
     CI_GL_DEPRECATED_IOS(5_0,12_0);
 
Clone this wiki locally