Skip to content

Commit

Permalink
GLContextX11.cpp:89:66: error: invalid cast from type 'long unsigned …
Browse files Browse the repository at this point in the history
…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 committed Sep 19, 2023
1 parent 1bb596a commit 356c9d5
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 356c9d5

Please sign in to comment.