mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
set SDL_MAC_OPENGL_ASYNC_DISPATCH sdl hint to fix macos resizing
This commit is contained in:
parent
b3f384f312
commit
3104e669bf
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue