raster rendering does not solve the problems with the experimantel RHI

state in Qt5 ( no problems with Qt6 RHI and Qt5 without RHI )
This commit is contained in:
Uwe Rathmann 2022-06-01 17:04:37 +02:00
parent e1a58f84ee
commit 86658ee2dc

View File

@ -93,14 +93,6 @@ namespace
if ( window == nullptr ) if ( window == nullptr )
return false; return false;
#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
if ( QQuickWindowPrivate::get( window )->rhi )
{
// does not yet work with the experimental RHI implementation in Qt5
return false;
}
#endif
const auto renderer = window->rendererInterface(); const auto renderer = window->rendererInterface();
return renderer->graphicsApi() == QSGRendererInterface::OpenGL; return renderer->graphicsApi() == QSGRendererInterface::OpenGL;
} }