* Object::Dispose() now does the same thing as Object::UnReference() * Fixed memory leak in UXTheme::Load2DTextureFile * Mesh Resource manager - Fixed mesh Resource manager pipeline - See example ProgObjMeshLoader
* Fixed GLSL Shaders in FontRendering.cpp - removed global variable USE_ARB_SHADERS and replaced with GraphicsEngine::UsingGLSLCodePath()
typename MapType::iterator it = ResourceMap.find(Id);
318
319
if(it != ResourceMap.end())
316
320
CachedResource = (*it).second;
317
321
318
if (CachedResource.IsValid() )
322
if(CachedResource.IsValid())
319
323
{
320
ResourceMap.erase (it);
321
CachedResource->Cached = 0; // Make sure that if the following line deletes the resource, it doesn't try to remove itself from the TDynamicMap we're iterating over.
324
ResourceMap.erase(it);
325
CachedResource->_cached = false;
322
326
}
323
327
}
324
328
334
338
if (CachedResource == Resource)
335
339
{
336
340
ResourceMap.erase (it);
337
CachedResource->Cached = 0; // Make sure that if the following line deletes the resource, it doesn't try to remove itself from the TDynamicMap we're iterating over.
341
CachedResource->_cached = 0; // Make sure that if the following line deletes the resource, it doesn't try to remove itself from the TDynamicMap we're iterating over.