History

DRY up stage classes with templates

HifiExperiments committed 2 years ago

Commit 9da9eb31 parent 9da839f39 files · +373 −802Browse files

Showing the changes to libraries/render-utils/src/ToneMapAndResampleTask.cpp (1 of 39 files). Show all

Unified · Split

libraries/render-utils/src/ToneMapAndResampleTask.cpp+3−2
@@ -4,6 +4,7 @@ · 3 unmodified lines
44 //
55 // Created by Anna Brewer on 7/3/19.
66 // Copyright 2019 High Fidelity, Inc.
7+// Copyright 2024 Overte e.V.
78 //
89 // Distributed under the Apache License, Version 2.0.
910 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
@@ -74,8 +75,8 @@ void ToneMapAndResample::run(const RenderContextPointer& renderContext, const In · 64 unmodified lines
7475
7576 const auto& tonemappingStage = renderContext->_scene->getStage<TonemappingStage>();
7677 graphics::TonemappingPointer tonemapping;
77− if (tonemappingStage && tonemappingFrame->_tonemappings.size()) {
78− tonemapping = tonemappingStage->getTonemapping(tonemappingFrame->_tonemappings.front());
78+ if (tonemappingStage && tonemappingFrame->_elements.size()) {
79+ tonemapping = tonemappingStage->getElement(tonemappingFrame->_elements.front());
7980 }
8081
8182 if (_debug) {