tst_qopengl: set surfaceType explicitly

Parent window in sizeLessWindow test was using software pipeline at
least on webOS, causing a QCRITICAL() exit when the test was executed.

Fixes: QTBUG-101869
Pick-to: 6.3
Change-Id: Ie8cc0ea0b6a09729475389be44197e01a45b217f
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Janne Juntunen 2022-03-17 16:13:59 +02:00
parent b858704e1f
commit a5ee74754d

View File

@ -1182,6 +1182,7 @@ void tst_QOpenGL::sizeLessWindow()
// child window
{
QWindow parent;
parent.setSurfaceType(QWindow::OpenGLSurface);
QWindow window(&parent);
window.setSurfaceType(QWindow::OpenGLSurface);