Fix vote Y/1 and teamvote Y/1
Calculate viewport and screen texture coordinates correctly for sun shadows.  This fixes part of #5889.
Merge remote-tracking branch 'upstream/master'