Showing the changes to libraries/render-utils/src/ToneMapAndResampleTask.cpp (1 of 62 files). Show all
Unified · Split
| @@ -32,7 +32,7 @@ ToneMapAndResample::ToneMapAndResample() { · 31 unmodified lines | ||
| 32 | 32 | |
| 33 | 33 | void ToneMapAndResample::init() { |
| 34 | 34 | // shared_ptr to gpu::State |
| 35 | − gpu::StatePointer blitState = gpu::StatePointer(new gpu::State()); | |
| 35 | + gpu::StatePointer blitState = std::make_shared<gpu::State>(); | |
| 36 | 36 | |
| 37 | 37 | blitState->setDepthTest(gpu::State::DepthTest(false, false)); |
| 38 | 38 | blitState->setColorWriteMask(true, true, true, true); |