Fixed float truncation issue. Needs further checking on texture loading functions