You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(webgl): degrade gracefully when the browser has no WebGL (#282)
The MiniTV renders from the root layout, so its three.js canvas mounts on
every route. On a browser with hardware acceleration off (also: sandboxed
contexts, blocklisted drivers, embedded webviews) getContext returns null,
WebGLRenderer throws, and with nothing catching it React unwound the whole
tree into Next.js' "This page couldn't load" screen. A decorative 120px
television was taking the site down for those users.
Adds a cached support probe and a guard component pairing that probe with
an error boundary — the probe catches the common case before three.js/ogl
construct anything, the boundary catches context loss, driver crashes,
exhausted context slots and shaders that won't compile on a given machine.
Applied to all four WebGL mount points. The fallback is silent: the scene
does not render, everything around it does.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
0 commit comments