Avoid EGL_BAD_MATCH in tst_qrhi autotest
Call adjustedFormat() as advised by the docs: "Applications are advised to set this format on their QWindow in order to avoid potential BAD_MATCH failures." Task-number: QTBUG-79659 Change-Id: Ibf415fb0ee64bdd3f01d4ba744244bce811c0d27 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
parent
b20956531b
commit
09ee9ef65d
@ -1590,6 +1590,9 @@ void tst_QRhi::renderToWindowSimple()
|
||||
QScopedPointer<QWindow> window(new QWindow);
|
||||
switch (impl) {
|
||||
case QRhi::OpenGLES2:
|
||||
#if QT_CONFIG(opengl)
|
||||
window->setFormat(QRhiGles2InitParams::adjustedFormat());
|
||||
#endif
|
||||
Q_FALLTHROUGH();
|
||||
case QRhi::D3D11:
|
||||
window->setSurfaceType(QSurface::OpenGLSurface);
|
||||
|
Loading…
Reference in New Issue
Block a user