Texture manager update to fix various issues