Subversion Repository Public Repository

Divide-Framework

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

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

Diff revisions: vs.
  @@ -2,11 +2,6 @@
2 2 #include "Rendering/RenderPass/Headers/RenderPass.h"
3 3 #include "Rendering/RenderPass/Headers/RenderQueue.h"
4 4
5 - struct RenderPassCallOrder{
6 - bool operator()(const RenderPassItem& a, const RenderPassItem& b) const {
7 - return a._sortKey < b._sortKey;
8 - }
9 - };
10 5
11 6 RenderPassManager::RenderPassManager() : _renderPassesLocked(false), _renderPassesResetQueued(false)
12 7 {
  @@ -42,7 +37,7 @@
42 37 void RenderPassManager::addRenderPass(RenderPass* const renderPass, U8 orderKey) {
43 38 assert(renderPass != nullptr);
44 39 _renderPasses.push_back(RenderPassItem(orderKey,renderPass));
45 - std::sort(_renderPasses.begin(), _renderPasses.end(), RenderPassCallOrder());
40 + std::sort(_renderPasses.begin(), _renderPasses.end(), [](const RenderPassItem& a, const RenderPassItem& b) -> bool { return a._sortKey < b._sortKey; });
46 41 }
47 42
48 43 void RenderPassManager::removeRenderPass(RenderPass* const renderPass,bool deleteRP) {