Log Message
[WebXR][Cocoa] Enable GL_OES_EGL_image extension when makeXRCompatible() is called on GL context https://bugs.webkit.org/show_bug.cgi?id=238477
Patch by Ada Chan <[email protected]> on 2022-03-28 Reviewed by Dean Jackson. Without this extension, EGLImageTargetTexture2DOES() will fail in GraphicsContextGLCocoa::attachIOSurfaceToSharedTexture(). * html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::makeXRCompatible):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (292020 => 292021)
--- trunk/Source/WebCore/ChangeLog 2022-03-29 02:04:25 UTC (rev 292020)
+++ trunk/Source/WebCore/ChangeLog 2022-03-29 03:06:07 UTC (rev 292021)
@@ -1,3 +1,16 @@
+2022-03-28 Ada Chan <[email protected]>
+
+ [WebXR][Cocoa] Enable GL_OES_EGL_image extension when makeXRCompatible() is called on GL context
+ https://bugs.webkit.org/show_bug.cgi?id=238477
+
+ Reviewed by Dean Jackson.
+
+ Without this extension, EGLImageTargetTexture2DOES() will fail
+ in GraphicsContextGLCocoa::attachIOSurfaceToSharedTexture().
+
+ * html/canvas/WebGLRenderingContextBase.cpp:
+ (WebCore::WebGLRenderingContextBase::makeXRCompatible):
+
2022-03-28 Lauro Moura <[email protected]>
Unreviewed, non-unified buildfix after 248938@main
Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp (292020 => 292021)
--- trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp 2022-03-29 02:04:25 UTC (rev 292020)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp 2022-03-29 03:06:07 UTC (rev 292021)
@@ -4243,6 +4243,11 @@
// Otherwise: Queue a task on the WebGL task source to perform the following steps:
// FIXME: add a way to verify that we're using a compatible graphics adapter.
m_isXRCompatible = true;
+
+#if PLATFORM(COCOA) && !PLATFORM(IOS_FAMILY_SIMULATOR)
+ enableSupportedExtension("GL_OES_EGL_image"_s);
+#endif
+
promise.resolve();
rejectPromiseWithInvalidStateError.release();
});
_______________________________________________ webkit-changes mailing list [email protected] https://lists.webkit.org/mailman/listinfo/webkit-changes
