set SDL_MAC_OPENGL_ASYNC_DISPATCH sdl hint to fix macos resizing

This commit is contained in:
Edgar 2023-05-09 14:46:14 +02:00
parent b3f384f312
commit 3104e669bf

View file

@ -4715,6 +4715,12 @@ int main(int argc, const char **argv)
pClient->ShellRegister();
#endif
#if defined(CONF_PLATFORM_MACOS)
// Hints will not be set if there is an existing override hint or environment variable that takes precedence.
// So this respects cli environment overrides.
SDL_SetHint("SDL_MAC_OPENGL_ASYNC_DISPATCH", "1");
#endif
// init SDL
if(SDL_Init(0) < 0)
{