Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 787 vs 788 for /trunk/Source Code/Platform/Video/GFXRTPool.cpp

Diff revisions: vs.
  @@ -32,13 +32,8 @@
32 32 }
33 33 }
34 34
35 - void GFXRTPool::set(RenderTargetID target,RenderTarget* newTarget) {
36 - RenderTarget*& existingTarget = _renderTargets[to_uint(target._usage)][target._index];
37 - if (existingTarget != nullptr) {
38 - MemoryManager::DELETE(existingTarget);
39 - }
40 -
41 - existingTarget = newTarget;
35 + void GFXRTPool::set(RenderTargetID target, RenderTarget* newTarget) {
36 + _renderTargets[to_uint(target._usage)][target._index] = newTarget;
42 37 }
43 38
44 39 RenderTargetHandle GFXRTPool::add(RenderTargetUsage targetUsage, RenderTarget* newTarget) {