shithub: choc

Download patch

ref: d50a8a60a0a7aead506cbf1b7e599ff441c7b948
parent: ed2a78707468ea438c9c35c6ff849b3f7c03ae33
parent: 20eca789ad40099dc2ee827b388f7c13708d77ca
author: Fabian Greffrath <[email protected]>
date: Sat Mar 3 03:01:38 EST 2018

Merge pull request #996 from AXDOOMER/master

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);
 }