Fix projective texture mapping issue c04ce5a64e

Fix #2471/#3759/#1774