Cleanup math in rgba2texel