Skip to content

Commit

Permalink
fix: intel error eglQueryDeviceAttributeXT: Bad attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Oct 16, 2024
1 parent 012e248 commit a7b3e73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ if (release().startsWith('6.1')) app.disableHardwareAcceleration()
// Set application name for Windows 10+ notifications
if (process.platform === 'win32') app.setAppUserModelId(app.getName())

// Avoid error in intel: 'eglQueryDeviceAttributeXT: Bad attribute'
if (process.platform === 'darwin' && process.arch === 'x64') {
app.disableHardwareAcceleration()
}

if (!app.requestSingleInstanceLock()) {
app.quit()
process.exit(0)
Expand Down

0 comments on commit a7b3e73

Please sign in to comment.