Set SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH.
Some checks failed
Build and test / MacOS (push) Has been cancelled
Build and test / Read .env file and expose it as output (push) Has been cancelled
Build and test / Ubuntu (push) Has been cancelled
Build and test / Windows (2019) (push) Has been cancelled
Build and test / Windows (2022) (push) Has been cancelled

This fixes bugs #8225 and #8462.
This commit is contained in:
Sam Kaufman 2025-04-20 20:39:28 -07:00
parent ca3a286cc4
commit 1948ab21f7
2 changed files with 4 additions and 0 deletions

View file

@ -231,6 +231,7 @@
Bug #8378: Korean bitmap fonts are unusable
Bug #8439: Creatures without models can crash the game
Bug #8441: Freeze when using video main menu replacers
Bug #8462: Crashes when resizing the window on macOS
Feature #1415: Infinite fall failsafe
Feature #2566: Handle NAM9 records for manual cell references
Feature #3501: OpenMW-CS: Instance Editing - Shortcuts for axial locking

View file

@ -379,6 +379,9 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
, mCfgMgr(configurationManager)
, mGlMaxTextureImageUnits(0)
{
#if SDL_VERSION_ATLEAST(2, 24, 0)
SDL_SetHint(SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH, "1");
#endif
SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0"); // We use only gamepads
Uint32 flags