File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55#include " common/common.h"
66#include " common/settings/settings.h"
7+ #include " common/util/utils.h"
78
89#include < framework/framework.h>
910#include < framework/lifecycle/pluginsetting.h>
@@ -103,10 +104,12 @@ void openProject(const QString &path)
103104int main (int argc, char *argv[])
104105{
105106 // some platform opengl drive with wrong,so use OpenGLES instead.
106- if (QSysInfo::currentCpuArchitecture ().contains (" arm" )) {
107- QSurfaceFormat format;
108- format.setRenderableType (QSurfaceFormat::OpenGLES);
109- format.setDefaultFormat (format);
107+ if (utils::isWayland ()) {
108+ if (QSysInfo::currentCpuArchitecture ().contains (" arm" )) {
109+ QSurfaceFormat format;
110+ format.setRenderableType (QSurfaceFormat::OpenGLES);
111+ format.setDefaultFormat (format);
112+ }
110113 }
111114
112115 QGuiApplication::setAttribute (Qt::AA_EnableHighDpiScaling);
You can’t perform that action at this time.
0 commit comments