Skip to content

Commit 8ddb0be

Browse files
committed
Fix Rust-SDL2#1323: Reset IS_MAIN_THREAD_DECLARED on drop
1 parent 5a0f7da commit 8ddb0be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sdl2/sdl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ impl Drop for SdlDrop {
209209
unsafe {
210210
sys::SDL_Quit();
211211
}
212+
IS_MAIN_THREAD_DECLARED.swap(false, Ordering::SeqCst);
212213
}
213214
}
214215
}

0 commit comments

Comments
 (0)