android backingstore: Drop out-of-date surface type check
Running a Vulkan-based QRhiWidget (upcoming in 6.7) and QQuickWidget shows the "...does not support OpenGL-only windows" warning which is pointless nowadays. Since Qt 6.4 RasterGLSurface is not in use, whereas the surface type can very well be VulkanSurface too. Pick-to: 6.6 6.5 Change-Id: I790767e683b2a4cffc99cbc38015aca809cf83c5 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
54e114f20d
commit
4abf862bca
@ -41,12 +41,8 @@ void QAndroidPlatformBackingStore::resize(const QSize &size, const QRegion &stat
|
|||||||
|
|
||||||
void QAndroidPlatformBackingStore::setBackingStore(QWindow *window)
|
void QAndroidPlatformBackingStore::setBackingStore(QWindow *window)
|
||||||
{
|
{
|
||||||
if (window->surfaceType() == QSurface::RasterSurface || window->surfaceType() == QSurface::RasterGLSurface) {
|
(static_cast<QAndroidPlatformWindow *>(window->handle()))->setBackingStore(this);
|
||||||
(static_cast<QAndroidPlatformWindow *>(window->handle()))->setBackingStore(this);
|
m_backingStoreSet = true;
|
||||||
m_backingStoreSet = true;
|
|
||||||
} else {
|
|
||||||
qWarning("QAndroidPlatformBackingStore does not support OpenGL-only windows.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
Loading…
Reference in New Issue
Block a user