fix a serious bug: in Cc3dTextureCache::removeUnusedTetures() for(int i=n;i<n;i++) should be for(int i=0;i<n;i++)