Most likely this is a consequence of it being deleted.
else if(state>ManagedResource::LOAD_QUEUED && state<ManagedResource::LOADED)
thread.remove_resource(managed);
+ for(vector<ResourceWatcher *>::const_iterator i=managed.watchers.begin(); i!=managed.watchers.end(); ++i)
+ (*i)->resource_removed(r);
+
MutexLock lock(map_mutex);
remove_existing(resources, &r);
}
virtual void resource_loaded(Resource &) { }
virtual void resource_unloaded(Resource &) { }
+ virtual void resource_removed(Resource &) { }
};
} // namespace GL