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);