foxygit / doom Log in
commit 20eca789ad40099dc2ee827b388f7c13708d77ca
Author:     Alexandre-Xavier Labonté-Lamoureux <alexandrexavier@live.ca>
AuthorDate: Thu Mar 1 15:05:51 2018 -0500
Commit:     Alexandre-Xavier Labonté-Lamoureux <alexandrexavier@live.ca>
CommitDate: Thu Mar 1 15:05:51 2018 -0500

    Fix exception thrown by Windows when debugging with GDB
---
 src/i_timer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/i_timer.c b/src/i_timer.c
index ab7ee3e4..9c03a61a 100644
--- a/src/i_timer.c
+++ b/src/i_timer.c
@@ -75,6 +75,9 @@ void I_InitTimer(void)
 {
     // initialize timer

+#if SDL_VERSION_ATLEAST(2, 0, 5)
+    SDL_SetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "1");
+#endif
     SDL_Init(SDL_INIT_TIMER);
 }