* Use single static buffer instead of each overlay having its own (its only used in the material system thread). * Improved readability by using ternary operators and c++ style casts.