From 1d7c67fd68a7d515da86b2f34c655ffb3db6dd2a Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 20 Oct 2016 06:26:14 +0000 Subject: [PATCH] sdlayer: Disable Windows thread naming because it interferes with debugging. git-svn-id: https://svn.eduke32.com/eduke32@5902 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/sdlayer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index 1c8f6c8d0..a78942f9f 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -409,6 +409,11 @@ int32_t main(int32_t argc, char *argv[]) } #endif +#if defined _WIN32 && defined SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING + // Thread naming interferes with debugging using MinGW-w64's GDB. + SDL_SetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "1"); +#endif + int32_t r; #ifdef USE_OPENGL