Qt 6.4 compatibility fix
This commit is contained in:
parent
c72f4be8d6
commit
bfab362bbb
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user