Showing the changes to libraries/render-utils/src/ToneMapAndResampleTask.cpp (1 of 39 files). Show all
Unified · Split
| @@ -4,6 +4,7 @@ · 3 unmodified lines | ||
| 4 | 4 | // |
| 5 | 5 | // Created by Anna Brewer on 7/3/19. |
| 6 | 6 | // Copyright 2019 High Fidelity, Inc. |
| 7 | +// Copyright 2024 Overte e.V. | |
| 7 | 8 | // |
| 8 | 9 | // Distributed under the Apache License, Version 2.0. |
| 9 | 10 | // 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 | ||
| 74 | 75 | |
| 75 | 76 | const auto& tonemappingStage = renderContext->_scene->getStage<TonemappingStage>(); |
| 76 | 77 | 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()); | |
| 79 | 80 | } |
| 80 | 81 | |
| 81 | 82 | if (_debug) { |