This is not SDL2-specific.