Improved multithreading performance by better work assignment.
Fixed some small texture mistakes.