From e6dce0920b08dab704e90ac695ac9a0fef01f0d2 Mon Sep 17 00:00:00 2001 From: SarahW Date: Tue, 5 Jun 2018 18:22:47 +0100 Subject: [PATCH] Disable SDL thread naming on Windows. Fixes running PCem through GDB. --- src/wx-sdl2-display-win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wx-sdl2-display-win.c b/src/wx-sdl2-display-win.c index 939e74c..f1062d5 100644 --- a/src/wx-sdl2-display-win.c +++ b/src/wx-sdl2-display-win.c @@ -306,6 +306,7 @@ LRESULT CALLBACK subWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPAR int display_init() { + SDL_SetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "1"); if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0) { printf("SDL could not initialize! Error: %s\n", SDL_GetError());