Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 322 vs 325 for /trunk/Source Code/Rendering/ForwardPlusRenderer.cpp

Diff revisions: vs.
  @@ -36,9 +36,9 @@
36 36
37 37 ForwardPlusRenderer::~ForwardPlusRenderer()
38 38 {
39 - SAFE_DELETE(_depthRanges);
40 - SAFE_DELETE(_opaqueGrid);
41 - SAFE_DELETE(_transparentGrid);
39 + MemoryManager::SAFE_DELETE( _depthRanges );
40 + MemoryManager::SAFE_DELETE( _opaqueGrid );
41 + MemoryManager::SAFE_DELETE( _transparentGrid );
42 42 RemoveResource(_depthRangesConstructProgram);
43 43 }
44 44
  @@ -63,14 +63,14 @@
63 63 _omniLightList.clear();
64 64 _omniLightList.reserve(static_cast<vectorAlg::vecSize>(lights.size()));
65 65
66 - for (const Light::LightMap::value_type& it : lights) {
66 + for ( const Light::LightMap::value_type it : lights ) {
67 67 const Light& light = *it.second;
68 - if (light.getLightType() == LIGHT_TYPE_POINT){
69 - _omniLightList.push_back(LightGrid::make_light(light.getPosition(), light.getDiffuseColor(), light.getRange()));
68 + if ( light.getLightType() == LIGHT_TYPE_POINT ) {
69 + _omniLightList.push_back( LightGrid::make_light( light.getPosition(), light.getDiffuseColor(), light.getRange() ) );
70 70 }
71 71 }
72 72
73 - if (!_omniLightList.empty()) {
73 + if ( !_omniLightList.empty() ) {
74 74 _transparentGrid->build(vec2<U16>(Config::Lighting::LIGHT_GRID_TILE_DIM_X, Config::Lighting::LIGHT_GRID_TILE_DIM_Y),
75 75 vec2<U16>(gpuBlock._ViewPort.z, gpuBlock._ViewPort.w), //< render target resolution
76 76 _omniLightList,