fix multi-threaded compressed texture writes.
minor changes