diff --git a/local/patches/qtbase/P1-qplatformopengl-guard.patch b/local/patches/qtbase/P1-qplatformopengl-guard.patch new file mode 100644 index 00000000..e87bd635 --- /dev/null +++ b/local/patches/qtbase/P1-qplatformopengl-guard.patch @@ -0,0 +1,26 @@ +--- /tmp/qtb-orig/src/plugins/platforms/wayland/hardwareintegration/qwaylandclientbufferintegration_p.h 2026-03-05 07:51:49.000000000 +0000 ++++ /tmp/qtb-mod/src/plugins/platforms/wayland/hardwareintegration/qwaylandclientbufferintegration_p.h 2026-04-28 13:47:16.739467291 +0100 +@@ -51,9 +51,13 @@ + virtual bool supportsThreadedOpenGL() const { return false; } + virtual bool supportsWindowDecoration() const { return false; } + ++ #if QT_CONFIG(opengl) ++#if QT_CONFIG(opengl) + virtual QWaylandWindow *createEglWindow(QWindow *window) = 0; + virtual QPlatformOpenGLContext *createPlatformOpenGLContext(const QSurfaceFormat &glFormat, QPlatformOpenGLContext *share) const = 0; ++#endif + virtual bool canCreatePlatformOffscreenSurface() const { return false; } ++#endif + #if QT_CONFIG(opengl) + virtual QOpenGLContext *createOpenGLContext(EGLContext context, EGLDisplay contextDisplay, QOpenGLContext *shareContext) const = 0; + virtual QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface) const { Q_UNUSED(surface); return nullptr; } +@@ -65,7 +69,9 @@ + EglContext + }; + virtual void *nativeResource(NativeResource /*resource*/) { return nullptr; } ++#if QT_CONFIG(opengl) + virtual void *nativeResourceForContext(NativeResource /*resource*/, QPlatformOpenGLContext */*context*/) { return nullptr; } ++#endif + }; + + } diff --git a/recipes/wip/qt/qtbase/P1-qplatformopengl-guard.patch b/recipes/wip/qt/qtbase/P1-qplatformopengl-guard.patch new file mode 120000 index 00000000..6aa3cf1e --- /dev/null +++ b/recipes/wip/qt/qtbase/P1-qplatformopengl-guard.patch @@ -0,0 +1 @@ +../../../../local/patches/qtbase/P1-qplatformopengl-guard.patch \ No newline at end of file diff --git a/recipes/wip/qt/qtbase/recipe.toml b/recipes/wip/qt/qtbase/recipe.toml index 8fe0e463..53489942 100644 --- a/recipes/wip/qt/qtbase/recipe.toml +++ b/recipes/wip/qt/qtbase/recipe.toml @@ -7,6 +7,7 @@ tar = "https://download.qt.io/official_releases/qt/6.11/6.11.0/submodules/qtbase patches = [ "redox.patch", "../../../../local/patches/qtbase/P0-remove-redox-linkat-unlinkat-stubs.patch", + "P1-qplatformopengl-guard.patch", ] [build]