diff --git a/egl-cast.patch b/egl-cast.patch new file mode 100644 index 0000000..fa2f4e3 --- /dev/null +++ b/egl-cast.patch @@ -0,0 +1,13 @@ +diff --git a/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp b/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp +index 7a7018390a11..dddea337ebff 100644 +--- a/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp ++++ b/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp +@@ -91,7 +91,7 @@ std::unique_ptr GLContextEGL::createPixmapContext(PlatformDisplay& + // swap buffers. So, we use a custom XError handler here that ignores BadDrawable errors and only warns about any other + // errors without aborting in any case. + XErrorTrapper trapper(x11Display, XErrorTrapper::Policy::Warn, { BadDrawable }); +- EGLSurface surface = eglCreatePixmapSurface(display, config, reinterpret_cast(pixmap.get()), 0); ++ EGLSurface surface = eglCreatePixmapSurface(display, config, (EGLNativePixmapType)pixmap.get(), 0); + if (surface == EGL_NO_SURFACE) { + eglDestroyContext(display, context); + return nullptr; diff --git a/webkit2gtk3.spec b/webkit2gtk3.spec index b6e5215..6d49cf7 100644 --- a/webkit2gtk3.spec +++ b/webkit2gtk3.spec @@ -24,6 +24,9 @@ Source1: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz.asc # $ gpg --export --export-options export-minimal D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3 5AA3BC334FD7E3369E7C77B291C559DBE4C9123B > webkitgtk-keys.gpg Source2: webkitgtk-keys.gpg +# https://github.com/WebKit/WebKit/pull/13083 +Patch0: egl-cast.patch + BuildRequires: bison BuildRequires: bubblewrap BuildRequires: cmake