Skip to content

Commit

Permalink
Revert customized default format sampling on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 22, 2022
1 parent b01cdd8 commit 4289515
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/main.cpp
Expand Up @@ -56,10 +56,13 @@ void initGraphics()
qputenv( "QSG_ANTIALIASING_METHOD", "vertex" );
#endif

#if not defined( Q_OS_ANDROID )
// Enables antialiasing in QML scenes
// Avoid enabling on Android OS as it leads to serious regressions on old devices
QSurfaceFormat format;
format.setSamples( 4 );
QSurfaceFormat::setDefaultFormat( format );
#endif
QGuiApplication::setAttribute( Qt::AA_EnableHighDpiScaling );
}

Expand Down

1 comment on commit 4289515

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.