Fixes: https://github.com/libsdl-org/SDL/issues/13952 . (cherry picked from commit 81f2f44843)
81f2f44843