openpencil/.github
Kayshen-X 9e083e164a fix(desktop): recover from unusable native GL on Windows startup
Some Windows 11 machines flash-exit on launch: their WGL OpenGL is the
GDI-generic 1.1 software renderer (no/old GPU driver, VMs, RDP), which
Skia's GL backend rejects. The old WglThenEgl preference never fell
through to EGL because WGL *did* create a (1.1) context; the failure
only surfaced downstream in make_gl, after which new_desktop merely
eprintln'd (invisible under windows_subsystem="windows") and exited —
a silent crash. Not all machines: ones with a real GPU driver get
GL 3.0+ and work, which is why only some users saw it.

- native: new_desktop retries once via forced EGL (ANGLE) when the
  native context can't drive Skia; machines that already work keep the
  WGL path byte-for-byte unchanged.
- desktop: pop a native error dialog on GL-init failure instead of a
  silent exit, so a GPU/driver problem is visible not mysterious.
- packaging/CI: ship arch-matched ANGLE runtime DLLs (libEGL /
  libGLESv2 / d3dcompiler_47) next to the exe, staged from an Electron
  release zip, so glutin's EGL fallback can load them.
2026-07-21 21:15:23 +08:00
..
ISSUE_TEMPLATE docs(github): drop Electron from the issue templates 2026-07-19 21:27:37 +08:00
workflows fix(desktop): recover from unusable native GL on Windows startup 2026-07-21 21:15:23 +08:00
FUNDING.yml V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
pull_request_template.md merge: land the align-branch work onto the refreshed base 2026-07-03 00:08:17 +08:00