Skip to content

Commit 0bf379a

Browse files
authored
Optimize GraphicsEngine by removing redundant code
cosmoscout#421 cosmoscout/cosmoscout-vr
1 parent 6199fde commit 0bf379a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/cs-core/GraphicsEngine.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,6 @@ void GraphicsEngine::update(glm::vec3 const& sunDirection) {
298298
pAverageLuminance = mToneMappingNode->getLastAverageLuminance();
299299
pMaximumLuminance = mToneMappingNode->getLastMaximumLuminance();
300300
}
301-
302-
for (auto& viewport : mDepthBuffers) {
303-
viewport.second.mDirty = true;
304-
}
305-
306-
for (auto& viewport : mColorBuffers) {
307-
viewport.second.mDirty = true;
308-
}
309301
}
310302

311303
////////////////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)