macOS: Calling getMouseXYRelative in paint() with OpenGL enabled causes runtime warnings

This is using the native ARM target. I haven’t checked through Rosetta.