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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5475>
This commit is contained in:
Jordan Petridis 2023-09-27 13:41:33 +02:00 committed by GStreamer Marge Bot
parent 7c7a90b99d
commit 5f7a37f21e

View file

@ -208,7 +208,9 @@ GstQSGTexture::GstQSGTexture(QRhiTexture * texture)
{ {
switch (texture->format()) { switch (texture->format()) {
case QRhiTexture::RGBA8: case QRhiTexture::RGBA8:
#if (QT_VERSION >= QT_VERSION_CHECK(6, 4, 0))
case QRhiTexture::RGB10A2: case QRhiTexture::RGB10A2:
#endif
case QRhiTexture::RGBA16F: case QRhiTexture::RGBA16F:
case QRhiTexture::RGBA32F: case QRhiTexture::RGBA32F:
this->m_has_alpha = true; this->m_has_alpha = true;