Skip to content

fix(core): PresentPixels check-before-mutate + docs (v0.30.20)#255

Merged
kolkov merged 2 commits into
mainfrom
fix/present-pixels-check-before-mutate
Jul 14, 2026
Merged

fix(core): PresentPixels check-before-mutate + docs (v0.30.20)#255
kolkov merged 2 commits into
mainfrom
fix/present-pixels-check-before-mutate

Conversation

@kolkov

@kolkov kolkov commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • go test ./core/... — pass
  • TestPresentPixels_PreservesAcquiredOnUnsupported — verifies state preserved
  • Build all platforms

kolkov added 2 commits July 14, 2026 14:12
…ture

Move hal.PixelPresenter type assertion before acquired texture discard.
Failed PresentPixels call on GPU backends no longer corrupts surface
state — acquired texture preserved for normal render→Present fallback.

Validate-then-mutate pattern matches Rust wgpu Surface::present() and
configure_surface() precondition checks.
@kolkov kolkov merged commit 202e125 into main Jul 14, 2026
10 checks passed
@kolkov kolkov deleted the fix/present-pixels-check-before-mutate branch July 14, 2026 11:19
@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant