diff --git a/ScreenPlayWidget/SPWidgetmain.cpp b/ScreenPlayWidget/SPWidgetmain.cpp index da0e1f7e..54e09bc7 100644 --- a/ScreenPlayWidget/SPWidgetmain.cpp +++ b/ScreenPlayWidget/SPWidgetmain.cpp @@ -8,7 +8,7 @@ int main(int argc, char* argv[]) { QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - QGuiApplication::setAttribute(Qt::AA_UseOpenGLES); + ScreenPlaySDK sdk; QGuiApplication app(argc, argv); diff --git a/ScreenPlayWindow/SPWmain.cpp b/ScreenPlayWindow/SPWmain.cpp index 2b1bc09f..dda4c5c1 100644 --- a/ScreenPlayWindow/SPWmain.cpp +++ b/ScreenPlayWindow/SPWmain.cpp @@ -9,7 +9,7 @@ int main(int argc, char* argv[]) { QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - QApplication::setAttribute(Qt::AA_UseDesktopOpenGL); + QApplication a(argc, argv); ScreenPlaySDK sdk; QtWebEngine::initialize();