mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2026-06-22 06:03:51 +08:00
Fix: Use -G 0 option will not set QTWEBENGINE_CHROMIUM_FLAGS env
Signed-off-by: gfdgd_xi <3025613752@qq.com>
This commit is contained in:
@@ -247,9 +247,9 @@ int main(int argc, char *argv[])
|
|||||||
<< "--enable-gpu-rasterization"
|
<< "--enable-gpu-rasterization"
|
||||||
<< "--enable-native-gpu-memory-buffers"
|
<< "--enable-native-gpu-memory-buffers"
|
||||||
<< "--enable-accelerated-video-decode";
|
<< "--enable-accelerated-video-decode";
|
||||||
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", chromium_flags.join(" ").toUtf8());
|
|
||||||
qDebug() << "Setting GPU to True.";
|
qDebug() << "Setting GPU to True.";
|
||||||
}
|
}
|
||||||
|
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", chromium_flags.join(" ").toUtf8());
|
||||||
// 初始化 QtWebEngine 深色模式环境变量
|
// 初始化 QtWebEngine 深色模式环境变量
|
||||||
WebEngineView::handleChromiumFlags();
|
WebEngineView::handleChromiumFlags();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user