Skip to content

Commit b829880

Browse files
committed
Merge remote-tracking branch 'benma/renderlog'
2 parents 44ffefb + 42a201d commit b829880

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontends/qt/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,18 @@ int main(int argc, char *argv[])
226226
// issues were observed on Windows and the app crashes on some Linux systems.
227227
qputenv("QMLSCENE_DEVICE", "softwarecontext");
228228
qputenv("QT_QUICK_BACKEND", "software");
229+
goLog("BITBOXAPP_RENDER=software");
229230
} else if (renderMode == "auto") {
230231
// Do nothing: leave it to Qt to decide the rendering backend, which is usually hardware
231232
// accelerated if available.
232233
//
233234
// In rare cases, this can lead to rendering artefacts and crashes, which is why it is not
234235
// enabled by default.
236+
std::cerr << "Rendering mode: automatic (usually hardware accelerated)" << std::endl;
237+
goLog("BITBOXAPP_RENDER=auto");
235238
} else {
236239
std::cerr << "Invalid value for BITBOXAPP_RENDER" << std::endl;
240+
goLog("Invalid value for BITBOXAPP_RENDER");
237241
return 1;
238242
}
239243

0 commit comments

Comments
 (0)