Don't use ivec in the fragment shader.

Attempt at #1777.  Needs the + 0.5 to round properly on mobile.
Merge pull request #1789 from unknownbrackets/gpu-minor

Don't use ivec in the fragment shader.