shithub: choc

Download patch

ref: 20eca789ad40099dc2ee827b388f7c13708d77ca
parent: ed2a78707468ea438c9c35c6ff849b3f7c03ae33
author: Alexandre-Xavier Labonté-Lamoureux <alexandrexavier@live.ca>
date: Thu Mar 1 10:05:51 EST 2018

Fix exception thrown by Windows when debugging with GDB

--- a/src/i_timer.c
+++ b/src/i_timer.c
@@ -75,6 +75,9 @@
 {
     // initialize timer
 
+#if SDL_VERSION_ATLEAST(2, 0, 5)
+    SDL_SetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "1");
+#endif
     SDL_Init(SDL_INIT_TIMER);
 }