webkit2gtk3/egl-cast.patch

14 lines
987 B
Diff

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> 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<EGLNativePixmapType>(pixmap.get()), 0);
+ EGLSurface surface = eglCreatePixmapSurface(display, config, (EGLNativePixmapType)pixmap.get(), 0);
if (surface == EGL_NO_SURFACE) {
eglDestroyContext(display, context);
return nullptr;