Skip to content

Commit

Permalink
Cherry-pick 268137@main (356c9d5). https://bugs.webkit.org/show_bug.c…
Browse files Browse the repository at this point in the history
…gi?id=261754

    GLContextX11.cpp:89:66: error: invalid cast from type 'long unsigned int' to type 'EGLNativePixmapType' {aka 'unsigned int'}
    https://bugs.webkit.org/show_bug.cgi?id=261754

    Unreviewed build fix.

    As usual, we need to use C-style casts with EGL types.

    * Source/WebCore/platform/graphics/egl/GLContextX11.cpp:
    (WebCore::GLContext::createPixmapContext):

    Canonical link: https://commits.webkit.org/268137@main
  • Loading branch information
mcatanzaro authored and carlosgcampos committed Sep 20, 2023
1 parent f1e3427 commit aab2a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebCore/platform/graphics/egl/GLContextX11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ std::unique_ptr<GLContext> GLContext::createPixmapContext(PlatformDisplay& platf
// 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;
Expand Down

0 comments on commit aab2a94

Please sign in to comment.