mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-07 11:02:25 +08:00
When macOS runs under a virtual environment, it is possible that MTLCreateSystemDefaultDevice() does not succeed. Not checking this failure results in a crash down the road. This change allows to skip GPU renderer and use an adequate fallback. Co-authored-by: D.musique <d-musique@users.noreply.github.com>