From 105042ccda730f83e17c59398fef8de41d2a3ec3 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Tue, 5 Oct 2021 11:15:26 +0100 Subject: [PATCH] Correct the eglQueryWaylandBufferWL_func prototype I am trying to build against a Qt built without OpenGL. In that case, the openGL headers have not been included and therefore GLboolean is not defined. Use EGLBoolean to match the EGL prototype. See also https://invent.kde.org/frameworks/kwayland/-/commit/d18486c03346ce7b120ed299bafb67b2ad9ef22f --- src/wayland/drmclientbuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/drmclientbuffer.cpp b/src/wayland/drmclientbuffer.cpp index 8b30cf721e..5773ee0aff 100644 --- a/src/wayland/drmclientbuffer.cpp +++ b/src/wayland/drmclientbuffer.cpp @@ -17,7 +17,7 @@ namespace KWaylandServer { -typedef GLboolean (*eglQueryWaylandBufferWL_func)(EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value); +typedef EGLBoolean (*eglQueryWaylandBufferWL_func)(EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value); static eglQueryWaylandBufferWL_func eglQueryWaylandBufferWL = nullptr; class DrmClientBufferPrivate : public ClientBufferPrivate