mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2026-05-07 23:00:16 +08:00
!6 修复在设置 -G 0 参数后无法正确设置浏览器Flags的问题
Merge pull request !6 from gfdgd xi/master
This commit is contained in:
@@ -247,9 +247,9 @@ int main(int argc, char *argv[])
|
||||
<< "--enable-gpu-rasterization"
|
||||
<< "--enable-native-gpu-memory-buffers"
|
||||
<< "--enable-accelerated-video-decode";
|
||||
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", chromium_flags.join(" ").toUtf8());
|
||||
qDebug() << "Setting GPU to True.";
|
||||
}
|
||||
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", chromium_flags.join(" ").toUtf8());
|
||||
// 初始化 QtWebEngine 深色模式环境变量
|
||||
WebEngineView::handleChromiumFlags();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user