mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
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:
parent
7c7a90b99d
commit
5f7a37f21e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue