⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 295342 in webkit


Ignore:
Timestamp:
Jun 7, 2022, 6:08:34 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

Do not enable promoted extensions in WebGL 2.0
​https://bugs.webkit.org/show_bug.cgi?id=223348

Patch by Alexey Knyazev <​3479527+lexaknyazev@users.noreply.github.com> on 2022-06-07
Reviewed by Kimmo Kinnunen.

  • LayoutTests/TestExpectations:
  • Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:

(WebCore::WebGL2RenderingContext::initializeNewContext):
(WebCore::WebGL2RenderingContext::initializeShaderExtensions): Deleted.

  • Source/WebCore/html/canvas/WebGL2RenderingContext.h:

Canonical link: ​https://commits.webkit.org/251358@main

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/TestExpectations

    r295279 r295342  
    37823782webgl/2.0.y/conformance2/extensions/ext-texture-norm16.html [ Pass ]
    37833783webgl/2.0.y/conformance2/extensions/oes-draw-buffers-indexed.html [ Pass ]
     3784webgl/2.0.y/conformance2/extensions/promoted-extensions-in-shaders.html [ Pass ]
    37843785
    37853786# WebGL 1.0.3 and 2.0.0 tests where behavior is obsolete and WebKit contains implementation
  • trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp

    r295279 r295342  
    182182    m_boundSamplers.clear();
    183183    m_boundSamplers.resize(m_textureUnits.size());
    184 
    185     // FIXME: this should likely be removed.
    186     initializeShaderExtensions();
    187184}
    188185
    … …  
    238235#endif
    239236
    240 }
    241 
    242 void WebGL2RenderingContext::initializeShaderExtensions()
    243 {
    244     // FIXME: these are in the WebGL 2.0 core API and should be removed.
    245     m_context->ensureExtensionEnabled("GL_OES_standard_derivatives"_s);
    246     m_context->ensureExtensionEnabled("GL_EXT_draw_buffers"_s);
    247     m_context->ensureExtensionEnabled("GL_EXT_shader_texture_lod"_s);
    248     m_context->ensureExtensionEnabled("GL_EXT_frag_depth"_s);
    249237}
    250238
  • trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.h

    r295279 r295342  
    309309    GCGLenum baseInternalFormatFromInternalFormat(GCGLenum internalformat);
    310310    bool isIntegerFormat(GCGLenum internalformat);
    311     void initializeShaderExtensions();
    312311    bool setIndexedBufferBinding(const char *functionName, GCGLenum target, GCGLuint index, WebGLBuffer*);
    313312
Note: See TracChangeset for help on using the changeset viewer.