Fix bug with running on AMD

AMD drivers don't like integer texcoords and silently screw up.