Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 272 vs 286 for /trunk/Source Code/Managers/RenderPassManager.cpp

Diff revisions: vs.
  @@ -10,9 +10,9 @@
10 10
11 11 RenderPassManager::~RenderPassManager()
12 12 {
13 - for(RenderPassItem& rpi : _renderPasses){
13 + for(RenderPassItem& rpi : _renderPasses)
14 14 SAFE_DELETE(rpi._rp);
15 - }
15 +
16 16 _renderPasses.clear();
17 17 RenderQueue::destroyInstance();
18 18 }
  @@ -29,9 +29,8 @@
29 29 }
30 30
31 31 void RenderPassManager::render(const SceneRenderState& sceneRenderState, SceneGraph* activeSceneGraph) {
32 - for(RenderPassItem& rpi : _renderPasses){
32 + for(RenderPassItem& rpi : _renderPasses)
33 33 rpi._rp->render(sceneRenderState, activeSceneGraph);
34 - }
35 34 }
36 35
37 36 void RenderPassManager::addRenderPass(RenderPass* const renderPass, U8 orderKey) {
  @@ -55,9 +54,9 @@
55 54 void RenderPassManager::removeRenderPass(const std::string& name,bool deleteRP) {
56 55 for(vectorImpl<RenderPassItem >::iterator it = _renderPasses.begin(); it != _renderPasses.end(); it++){
57 56 if(it->_rp->getName().compare(name) == 0){
58 - if(deleteRP){
57 + if(deleteRP)
59 58 SAFE_DELETE(it->_rp);
60 - }
59 +
61 60 _renderPasses.erase(it);
62 61 break;
63 62 }
  @@ -65,8 +64,8 @@
65 64 }
66 65
67 66 U16 RenderPassManager::getLastTotalBinSize(U8 renderPassId) const {
68 - if(renderPassId < _renderPasses.size()){
67 + if(renderPassId < _renderPasses.size())
69 68 return _renderPasses[renderPassId]._rp->getLasTotalBinSize();
70 - }
69 +
71 70 return 0;
72 71 }