Skip to content

OpenGL macOS xcode13.0 beta1

Manuel de la Pena edited this page Aug 10, 2021 · 2 revisions

#OpenGL.framework https://github.com/xamarin/xamarin-macios/pull/12394

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/CGLTypes.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/CGLTypes.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/CGLTypes.h	2021-03-16 09:55:12.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/CGLTypes.h	2021-06-02 11:07:44.000000000 -0400
@@ -160,7 +160,8 @@
 typedef enum _CGLGPURestartStatus { /* GPU Restart Status */
 	kCGLCPGPURestartStatusNone        = 0, /* current context has not caused recent GPU restart */
 	kCGLCPGPURestartStatusCaused      = 1, /* current context caused recent GPU restart (auto-clear on query) */
-	kCGLCPGPURestartStatusBlacklisted = 2, /* current context is being ignored for excessive GPU restarts (won't clear on query) */
+	kCGLCPGPURestartStatusBlacklisted OPENGL_ENUM_DEPRECATED(10_0, 10_10) = 2, /* current context is being ignored for excessive GPU restarts (won't clear on query) */
+    kCGLCPGPURestartStatusDenied      = 2, /* current context is being ignored for excessive GPU restarts (won't clear on query) */
 } CGLGPURestartStatus;
 
 /*
@@ -194,7 +195,8 @@
 	kCGLCPHasDrawable OPENGL_ENUM_AVAILABLE(10_5)            = 314, /* 1 param.   Boolean returned if drawable is attached			*/
 	kCGLCPMPSwapsInFlight OPENGL_ENUM_AVAILABLE(10_5)        = 315, /* 1 param.   Max number of swaps queued by the MP GL engine	*/
 	kCGLCPGPURestartStatus OPENGL_ENUM_AVAILABLE(10_10)      = 317, /* 1 param.   Retrieves and clears the current CGLGPURestartStatus */
-	kCGLCPAbortOnGPURestartStatusBlacklisted OPENGL_ENUM_AVAILABLE(10_10) = 318, /* 1 param.  Establish action to take upon blacklisting */
+    kCGLCPAbortOnGPURestartStatusBlacklisted OPENGL_ENUM_DEPRECATED(10_0, 10_10) = 318, /* 1 param.  Establish action to take upon blacklisting */
+    kCGLCPAbortOnGPURestartStatusDenied OPENGL_ENUM_AVAILABLE(10_10) = 318, /* 1 param.  Establish action to take upon blacklisting */
 	kCGLCPSupportGPURestart OPENGL_ENUM_AVAILABLE(10_10)     = 319, /* 1 param.   Does driver support auto-restart of GPU on hang/crash? */
 	kCGLCPSupportSeparateAddressSpace OPENGL_ENUM_AVAILABLE(10_10) = 320, /* 1 param. Does context get its own GPU address space?   */
 	kCGLCPContextPriorityRequest OPENGL_ENUM_AVAILABLE(10_10) = 608, /* 1 param. kCGLCPContextPriorityRequest[High|Normal|Low] 0|1|2 */
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl3ext.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl3ext.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl3ext.h	2021-03-16 09:55:12.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl3ext.h	2021-06-02 11:07:44.000000000 -0400
@@ -6,6 +6,7 @@
 #define __gl3ext_h_
 
 #include <OpenGL/gltypes.h>
+#include <OpenGL/OpenGLAvailability.h>
 
 #ifdef __cplusplus
 extern "C" {
Clone this wiki locally