[webkit-changes] [WebKit/WebKit] 973843: [GTK] Build failure due to EGLNativeWindowType cas...

Adrian Perez noreply at github.com
Mon Apr 24 00:13:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 973843664d25524ba050bd37cabe2e44ffc0c512
      https://github.com/WebKit/WebKit/commit/973843664d25524ba050bd37cabe2e44ffc0c512
  Author: Adrian Perez de Castro <aperez at igalia.com>
  Date:   2023-04-24 (Mon, 24 Apr 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/egl/GLContext.cpp

  Log Message:
  -----------
  [GTK] Build failure due to EGLNativeWindowType cast when GTK only has Wayland support
https://bugs.webkit.org/show_bug.cgi?id=255846

Reviewed by Michael Catanzaro.

EGLNativeWindowType can be aliased to a different type depending on the
EGL implementation headers, and static_cast (or reinterpret_cast) may
not always work. This is similar to 194561 at main, but with the conversion
being done in the opposite direction, therefore we apply the same
solution using a C style cast expression, which works in all cases.

* Source/WebCore/platform/graphics/egl/GLContext.cpp:
(WebCore::GLContext::createWindowContext): Use a plain C cast expression.

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




More information about the webkit-changes mailing list