Added the biRefcounterMap and updated the Texturemanager