| 449 | } |
| 450 | |
| 451 | void ResourceStub::deactivate() |
| 452 | { |
| 453 | // Iterate through all the referenced resource stubs. |
| 454 | for (auto iter = _references.begin(); iter != _references.end(); iter++) |
| 455 | { |
| 456 | // Decrement refenced resource's active reference count. |
| 457 | if (iter->second) |
| 458 | { |
| 459 | iter->second->decrementActiveRefCount(); |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | if (_tracker.resourceDeactivated) |
| 464 | _tracker.resourceDeactivated(*this); |
| 465 | |
| 466 | // Destroy the actual renderer resource for this resource stub. |
| 467 | destroyResource(); |
| 468 | } |
| 469 | |
| 470 | END_AURORA |
nothing calls this directly
no test coverage detected