Small fix

This commit is contained in:
Core 2022-09-30 01:14:29 +01:00
parent 83fb556aa2
commit 3a276b2a8d
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ export class AppEvents {
break;
case "webgpu":
console.info("WebGPU is enabled.");
console.info("[AppEvents] WebGPU is enabled.");
app.commandLine.appendSwitch("enable-unsafe-webgpu");
if (process.platform === "linux") {
app.commandLine.appendSwitch("enable-features", "Vulkan");
@ -85,7 +85,7 @@ export class AppEvents {
break;
case "disabled":
console.info("Hardware acceleration is disabled.");
console.info("[AppEvents] Hardware acceleration is disabled.");
app.commandLine.appendSwitch("disable-gpu");
app.disableHardwareAcceleration();
break;