pos[2] is limited between 0 and 65535

fix the black screen issue for Toaru Majutsu no Index, and Toaru Kagaku no Railgun.
Merge pull request #738 from oioitff/master

Fix the black screen issue for Toaru Majutsu no Index, and Toaru Kagaku no Railgun