Skip to content

Commit

Permalink
Update on resize instead of pre-render / render (gazebosim#1028)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
  • Loading branch information
iche033 authored and WilliamLewww committed Dec 7, 2021
1 parent eab0b65 commit 830dc82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/plugins/scene3d/Scene3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,7 @@ void IgnRenderer::Render(RenderSync *_renderSync)
// setting the size should cause the render texture to be rebuilt
{
IGN_PROFILE("IgnRenderer::Render Pre-render camera");
this->dataPtr->camera->PreRender();
this->dataPtr->camera->Render();
this->dataPtr->camera->Update();
}
this->textureDirty = false;

Expand Down

0 comments on commit 830dc82

Please sign in to comment.