From b2883e4fecc5bcdce1c51d8866a3930375627ab2 Mon Sep 17 00:00:00 2001
From: Zhiyuan Li <uniartisan2017@gmail.com>
Date: Mon, 19 Aug 2024 14:10:43 +1000
Subject: [PATCH] =?UTF-8?q?FIX:=20=E6=B8=B2=E6=9F=93=E4=B8=8D=E4=B8=8A?=
 =?UTF-8?q?=E5=B1=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/main.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main.cpp b/src/main.cpp
index 32f686e..ec50d24 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -76,7 +76,7 @@ void crashHandler(int sig) {
     gatherInfo(popen("LANG=en_US.UTF-8 lsb_release -a", "r"), logFile, "Distribution info");
     gatherInfo(popen("LANG=en_US.UTF-8 lscpu", "r"), logFile, "All CPU Info");
     gatherInfo(popen("LANG=en_US.UTF-8 free -h | grep Mem | awk '{print $2}'", "r"), logFile, "Memory Size");
-  
+
 
 
     logFile << "Error: signal " << sig << ":\n";
@@ -145,6 +145,8 @@ int main(int argc, char *argv[])
     // 浏览器开启 GPU 支持
     // qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-features=UseModernMediaControls");
     // qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-web-security");
+    // 全平台软件渲染Webkit
+    qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu");
 #ifdef __sw_64__
     qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--no-sandbox");
 #endif