[Webkit-unassigned] [Bug 255847] New: [WPE][GTK] ExtensionsGLOpenGLES.cpp uses GLES3 symbols unconditionally in 2.38.x

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 23 13:25:53 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255847

            Bug ID: 255847
           Summary: [WPE][GTK] ExtensionsGLOpenGLES.cpp uses GLES3 symbols
                    unconditionally in 2.38.x
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com

File Source/WebCore/platform/graphics/opengl/ExtensionsGLOpenGLES.cpp uses
OpenGL ES 3 symbols glVertexAttribDivisor(), glDrawArraysInstanced(), and
glDrawElementsInstanced(); and the GL_MAJOR_VERSION definition unconditionally
without guarding the usage with HAVE(OPENGL_ES_3).

This results in build failures with OpenGL ES driver headers which are
strictly defining only ES2 symbols, and likely has been working most of the
time because many drivers which also support ES3 (or the particular symbols
used) included them when picking <GLES2/gl2.h> and/or <GLES/gl2ext.h>.

One case in which build failures happen is the Mali driver provided by
Buildroot's sunxi-mali-utgard package patches to allow using the Wayland
variant with the following patch:

  https://o.perezdecastro.org/buildroot-sunxi-mali-utgard-wayland.diff

Note that bug #255846 also needs solving to successfully compile WebKitGTK
with the aforementioned Mali driver.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230423/2d6dd91a/attachment.htm>


More information about the webkit-unassigned mailing list