Skip to content

Commit

Permalink
Fix #1323: Reset IS_MAIN_THREAD_DECLARED on drop
Browse files Browse the repository at this point in the history
  • Loading branch information
austindoupnik committed Sep 14, 2023
1 parent 5a0f7da commit 8ddb0be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sdl2/sdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ impl Drop for SdlDrop {
unsafe {
sys::SDL_Quit();
}
IS_MAIN_THREAD_DECLARED.swap(false, Ordering::SeqCst);
}
}
}
Expand Down

0 comments on commit 8ddb0be

Please sign in to comment.