Skip to content

vello_gpu: Remove the WebGL state guard - #1911

Merged
laurenz-canva merged 1 commit into
mainfrom
laurenz/remove_state_guard
Sep 18, 2026
Merged

laurenz-canva merged 1 commit into
mainfrom
laurenz/remove_state_guard

Conversation

@LaurenzV

@LaurenzV LaurenzV commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

This PR removes the WebGlStateGuard completely from Vello GPU. WebGlRenderer already documents that we don't make any guarantees about preserving existing WebGL state, so it's better to remove the guard completely. While some research by Codex suggests that querying framebuffer and pixel pack buffer state should not be expensive on mainstream browsers, it's still better to be safe than sorry, especially since the guard isn't necessary anymore.

@LaurenzV
LaurenzV added this pull request to stack #1912 September 14, 2026 13:29
@laurenz-canva
laurenz-canva force-pushed the laurenz/remove_state_guard branch from 1b26be3 to 3417c6b Compare September 15, 2026 08:18
@laurenz-canva
laurenz-canva force-pushed the laurenz/remove_state_guard branch from 3417c6b to 45181e4 Compare September 15, 2026 08:58
Base automatically changed from laurenz/more_raii to main September 16, 2026 11:11
LaurenzV added a commit that referenced this pull request Sep 16, 2026
@LaurenzV
LaurenzV force-pushed the laurenz/remove_state_guard branch from 45181e4 to 3cdefdb Compare September 16, 2026 11:11
@laurenz-canva
laurenz-canva force-pushed the laurenz/remove_state_guard branch from 3cdefdb to 52c92e4 Compare September 17, 2026 10:33
@grebmeg
grebmeg self-requested a review September 17, 2026 23:34
@laurenz-canva
laurenz-canva added this pull request to the merge queue Sep 18, 2026
Merged via the queue into main with commit 1e10da7 Sep 18, 2026
22 checks passed
@laurenz-canva
laurenz-canva deleted the laurenz/remove_state_guard branch September 18, 2026 05:42
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.

3 participants