Disable SDL thread naming on Windows. Fixes running PCem through GDB.
This commit is contained in:
parent
e44ca65ad6
commit
e6dce0920b
1 changed files with 1 additions and 0 deletions
|
|
@ -306,6 +306,7 @@ LRESULT CALLBACK subWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPAR
|
||||||
|
|
||||||
int display_init()
|
int display_init()
|
||||||
{
|
{
|
||||||
|
SDL_SetHint(SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING, "1");
|
||||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0)
|
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0)
|
||||||
{
|
{
|
||||||
printf("SDL could not initialize! Error: %s\n", SDL_GetError());
|
printf("SDL could not initialize! Error: %s\n", SDL_GetError());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue