fix for mono in texMgr, performance improvemenet