From 5f7a37f21e1d2f6ed15052d613d389460afa0433 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 27 Sep 2023 13:41:33 +0200 Subject: [PATCH] qt6: if def newer symbosl in QRhiTexture version 6.4 added QRhiTexture::RGB10A2 but we depend on an older version of qt in meson, and we can keep compiling with older Qt6 versions still. Part-of: --- subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc b/subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc index 9c078bbf6d..bf50841097 100644 --- a/subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc +++ b/subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc @@ -208,7 +208,9 @@ GstQSGTexture::GstQSGTexture(QRhiTexture * texture) { switch (texture->format()) { case QRhiTexture::RGBA8: +#if (QT_VERSION >= QT_VERSION_CHECK(6, 4, 0)) case QRhiTexture::RGB10A2: +#endif case QRhiTexture::RGBA16F: case QRhiTexture::RGBA32F: this->m_has_alpha = true;