Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: df6bba12ff65e9a48e20fe19feec614836b48bde
      
https://github.com/WebKit/WebKit/commit/df6bba12ff65e9a48e20fe19feec614836b48bde
  Author: Sergio Villar Senin <[email protected]>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M 
Source/WebCore/platform/graphics/android/GraphicsContextGLTextureMapperAndroid.cpp
    M 
Source/WebCore/platform/graphics/android/GraphicsContextGLTextureMapperAndroid.h
    M Source/WebCore/platform/graphics/gbm/GraphicsContextGLTextureMapperGBM.cpp
    M Source/WebCore/platform/graphics/gbm/GraphicsContextGLTextureMapperGBM.h

  Log Message:
  -----------
  [WebXR] WebGL extensions not enabled when using xrCompatible context creation 
attribute
https://bugs.webkit.org/show_bug.cgi?id=316540

Reviewed by Dan Glastonbury.

Whenever a XR experience requests a XR compatible canvas to a GL context
it must be ensured that all the required GL extensions are available.
That is done by the different implementations of
enabledRequiredWebXRExtensions().

The aforementioned call is the recommended way to create an XR
compatible canvas because it's asynchronous. However there is also the
possibility of creating them using the xrCompatible boolean flag at
creation time. If that method was used the required list of GL
extensions was not enforced. We must call
enableRequiredWebXRExtensions() also in that case.

* 
Source/WebCore/platform/graphics/android/GraphicsContextGLTextureMapperAndroid.cpp:
(WebCore::GraphicsContextGLTextureMapperAndroid::platformInitializeExtensions):
(WebCore::GraphicsContextGLTextureMapperAndroid::enableRequiredWebXRExtensions):
(WebCore::GraphicsContextGLTextureMapperAndroid::enableRequiredWebXRExtensionsImpl):
* 
Source/WebCore/platform/graphics/android/GraphicsContextGLTextureMapperAndroid.h:
* Source/WebCore/platform/graphics/gbm/GraphicsContextGLTextureMapperGBM.cpp:
(WebCore::GraphicsContextGLTextureMapperGBM::platformInitializeExtensions):
(WebCore::GraphicsContextGLTextureMapperGBM::enableRequiredWebXRExtensions):
(WebCore::GraphicsContextGLTextureMapperGBM::enableRequiredWebXRExtensionsImpl):
* Source/WebCore/platform/graphics/gbm/GraphicsContextGLTextureMapperGBM.h:

Canonical link: https://commits.webkit.org/315082@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to