Skip to content

Commit

Permalink
Merge pull request #1328 from kellerkindt/kellerkindt-readme-note-vul…
Browse files Browse the repository at this point in the history
…kano-swapchain

Add note  to not drop the window too early
  • Loading branch information
Cobrand authored Aug 9, 2023
2 parents 9b16758 + 39759aa commit bee13b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ fn main() {
.vulkan_create_surface(instance.handle().as_raw() as _)
.unwrap();

// SAFETY: that's just the way it is
// SAFETY: Be sure not to drop the `window` before the `Surface` or vulkan `Swapchain`! (SIGSEGV otherwise)
let surface = unsafe {
Surface::from_handle(
Arc::clone(&instance),
Expand Down

0 comments on commit bee13b5

Please sign in to comment.