Skip to content

Commit c3aee87

Browse files
authored
alpha-0.1.10/Linux maptiler error #604 (#605)
* Added ai's fixed (i cba to figure it out) * only validated for linux
1 parent e0c48fa commit c3aee87

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

gcs/electron/main.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ process.env.VITE_PUBLIC = app.isPackaged
2424
app.commandLine.appendSwitch('high-dpi-support', '1')
2525
app.commandLine.appendSwitch('force-device-scale-factor', '1')
2626

27+
// Fix linux WebGL error (icl chatgpt made this)
28+
if (process.platform === 'linux') {
29+
app.commandLine.appendSwitch('use-gl', 'desktop'); // force mesa
30+
app.commandLine.appendSwitch('ignore-gpu-blacklist'); // allow iris, etc.
31+
app.commandLine.appendSwitch('enable-webgl');
32+
app.commandLine.appendSwitch('enable-webgl2-compute-context');
33+
}
34+
2735
let win: BrowserWindow | null
2836
let loadingWin: BrowserWindow | null
2937
let webcamPopoutWin: BrowserWindow | null

0 commit comments

Comments
 (0)