Fixed stupid build errors and scaled texture coordinate caching.