Skip to content

fix: remove over-aggressive WebGL shader compilation pre-check#236

Merged
brianbruff merged 1 commit into
mainfrom
claude/issue-234-20260426-2046
Apr 26, 2026
Merged

fix: remove over-aggressive WebGL shader compilation pre-check#236
brianbruff merged 1 commit into
mainfrom
claude/issue-234-20260426-2046

Conversation

@brianbruff
Copy link
Copy Markdown
Owner

The shader-compilation test on a detached test canvas produced false negatives on Windows (ANGLE backend) and Linux (Mesa), causing the globe to refuse initialization even when WebGL was fully functional. macOS was unaffected due to its Metal-backed WebGL implementation.

Replace with a lightweight context-existence check; globe.gl's own Three.js initialization already handles deeper WebGL failures via the existing try/catch.

Fixes: #234

The shader-compilation test on a detached test canvas produced false
negatives on Windows (ANGLE backend) and Linux (Mesa), causing the globe
to refuse initialization even when WebGL was fully functional. macOS was
unaffected due to its Metal-backed WebGL implementation.

Replace with a lightweight context-existence check; globe.gl's own
Three.js initialization already handles deeper WebGL failures via the
existing try/catch.

Fixes: #234

Co-authored-by: Brian Keating <brianbruff@users.noreply.github.com>
@brianbruff brianbruff merged commit 20289db into main Apr 26, 2026
3 of 4 checks passed
@brianbruff brianbruff deleted the claude/issue-234-20260426-2046 branch April 26, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review CPU performance — GPU helper sustained ~110% CPU

1 participant