Fixed texture format bug.