Qt 6.4 compatibility fix

This commit is contained in:
Uwe Rathmann 2022-08-29 17:44:57 +02:00
parent c72f4be8d6
commit bfab362bbb

View File

@ -91,7 +91,13 @@ void QskTextureRenderer::setTextureId( QQuickWindow* window,
auto rhi = QQuickWindowPrivate::get( window )->rhi; auto rhi = QQuickWindowPrivate::get( window )->rhi;
#if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) #if QT_VERSION >= QT_VERSION_CHECK( 6, 4, 0 )
const uint nativeFormat = 0;
plainTexture->setTextureFromNativeTexture(
rhi, quint64( textureId ), 0, nativeFormat, size, {}, {} );
#elif QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 )
plainTexture->setTextureFromNativeTexture( plainTexture->setTextureFromNativeTexture(
rhi, quint64( textureId ), 0, size, {}, {} ); rhi, quint64( textureId ), 0, size, {}, {} );
#else #else