Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 299 vs 318 for /trunk/Source Code/Rendering/ForwardPlusRenderer.cpp

Diff revisions: vs.
  @@ -3,6 +3,8 @@
3 3 #include "Managers/Headers/LightManager.h"
4 4 #include "Core/Resources/Headers/ResourceCache.h"
5 5
6 + namespace Divide {
7 +
6 8 ForwardPlusRenderer::ForwardPlusRenderer() : Renderer(RENDERER_FORWARD_PLUS)
7 9 {
8 10 _opaqueGrid = New LightGrid();
  @@ -57,7 +59,7 @@
57 59 bool ForwardPlusRenderer::buildLightGrid(const GFXDevice::GPUBlock& gpuBlock) {
58 60 const Light::LightMap& lights = LightManager::getInstance().getLights();
59 61
60 - _omniLightList.resize(0);
62 + _omniLightList.clear();
61 63 _omniLightList.reserve(lights.size());
62 64
63 65 FOR_EACH(const Light::LightMap::value_type& it, lights) {
  @@ -103,4 +105,6 @@
103 105 _depthRanges->ReadData(RG, FLOAT_32, &depthRanges[0]);
104 106 }
105 107 _depthRanges->End();
106 - }
108 + }
109 +
110 + };