Skip to content

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jan 30, 2024

Connections
connected to

at first I thought I introduced the unwrap, but it was already there (still guilty, why did I not forsee this -.-)

Description
Fixes crash via unwrap when trying to create a surface on an instance that has no workable backend availble (e.g. try to create a surface when an instance is limited to dx12 on a metal device)

Testing
It compiles and there's an unwrap less!

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@Wumpf Wumpf added the type: bug Something isn't working label Jan 30, 2024
@Wumpf Wumpf requested a review from a team as a code owner January 30, 2024 21:00
@Wumpf Wumpf enabled auto-merge (squash) January 31, 2024 08:30
@Wumpf Wumpf merged commit 4595708 into gfx-rs:trunk Jan 31, 2024
@Wumpf Wumpf added the PR: needs back-porting PR with a fix that needs to land on crates label Jan 31, 2024
@Wumpf Wumpf deleted the fix-surface-creation-crash-when-no-adapters-are-available branch February 24, 2024 09:45
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Mar 1, 2024
@kpreid
Copy link
Collaborator

kpreid commented Mar 9, 2024

This fix wasn't backported to 0.19.3 which was released at the same time as the "needs back-porting" label was removed. Seems like an error.

@Wumpf
Copy link
Member Author

Wumpf commented Mar 10, 2024

The label was removed because this is a breaking change, thus can't be back ported to 0.19.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants