From cda902acd673499f038fbdbf61116c4fbb3ea0af Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Tue, 14 May 2019 11:53:01 +0200 Subject: [PATCH] Work around QTBUG-75797 for openQA --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 59f759d275..de48b95bae 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,6 +29,7 @@ #include #include +#include #include #ifdef WITH_QT_WEBENGINE @@ -50,6 +51,11 @@ int main( int argc, char *argv[] ) QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QSurfaceFormat fmt = QSurfaceFormat::defaultFormat(); + if(fmt.redBufferSize() < 8) + fmt.setRedBufferSize(8); + QSurfaceFormat::setDefaultFormat(fmt); + App app(argc, argv); app.setApplicationDisplayName(i18n("Amarok")); -- 2.33.0