comparison Applications/Samples/Common/RtViewerView.cpp @ 1903:c7bc9e1776a6

fix rendering of RT sample
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 31 Jan 2022 18:00:10 +0100
parents b3c08e607d9f
children f81cdf283859
comparison
equal deleted inserted replaced
1902:1cfd602de69d 1903:c7bc9e1776a6
215 215
216 for (unsigned int z = 0; z < depth; z++) 216 for (unsigned int z = 0; z < depth; z++)
217 { 217 {
218 planes_[z] = geometry.GetProjectionSlice(projection_, z); 218 planes_[z] = geometry.GetProjectionSlice(projection_, z);
219 } 219 }
220
221 UpdateLayers();
222 } 220 }
223 221
224 void RtViewerView::UpdateLayers() 222 void RtViewerView::UpdateLayers()
225 { 223 {
226 std::unique_ptr<IViewport::ILock> lock(viewport_->Lock()); 224 std::unique_ptr<IViewport::ILock> lock(viewport_->Lock());