Skip to content

Update wgpu to v0.29, update guillotiere, toml, resvg*#698

Merged
dhardy merged 2 commits into
masterfrom
push-uymnmtwptxqq
Jun 1, 2026
Merged

Update wgpu to v0.29, update guillotiere, toml, resvg*#698
dhardy merged 2 commits into
masterfrom
push-uymnmtwptxqq

Conversation

@dhardy
Copy link
Copy Markdown
Collaborator

@dhardy dhardy commented Jun 1, 2026

This unblocks #635.

Comment on lines 115 to 128
fn present(&mut self, shared: &mut Self::Shared, clear_color: Rgba) -> Instant {
// TODO: review error handling
let frame = match self.surface.get_current_texture() {
Ok(frame) => frame,
Err(e) => {
// This error has not been observed. Can it be fixed by
// re-configuring the surface? Does it ever occur anyway?
log::error!("WindowSurface::present: failed to get frame texture: {e}");
CurrentSurfaceTexture::Success(frame) | CurrentSurfaceTexture::Suboptimal(frame) => {
frame
}
CurrentSurfaceTexture::Timeout
| CurrentSurfaceTexture::Occluded
| CurrentSurfaceTexture::Outdated
| CurrentSurfaceTexture::Lost
| CurrentSurfaceTexture::Validation => {
return Instant::now();
}
};
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inelegant but broadly equivalent to what we had before.

@dhardy dhardy merged commit 7f0012d into master Jun 1, 2026
5 checks passed
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