From a5ee74754db3dcd8adc30073dd685e23acda23e8 Mon Sep 17 00:00:00 2001 From: Janne Juntunen Date: Thu, 17 Mar 2022 16:13:59 +0200 Subject: [PATCH] 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 --- tests/auto/gui/qopengl/tst_qopengl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/gui/qopengl/tst_qopengl.cpp b/tests/auto/gui/qopengl/tst_qopengl.cpp index 07e40f8f911..aed23f5cfcf 100644 --- a/tests/auto/gui/qopengl/tst_qopengl.cpp +++ b/tests/auto/gui/qopengl/tst_qopengl.cpp @@ -1182,6 +1182,7 @@ void tst_QOpenGL::sizeLessWindow() // child window { QWindow parent; + parent.setSurfaceType(QWindow::OpenGLSurface); QWindow window(&parent); window.setSurfaceType(QWindow::OpenGLSurface);