Skip to content

Commit

Permalink
Call Scene::PostRenderGpuFlush
Browse files Browse the repository at this point in the history
Requires ign-rendering update to compile correctly
Requires ign-gazebo update to run correctly

Affects gazebosim/gz-rendering#323

Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
  • Loading branch information
darksylinc committed Jul 17, 2021
1 parent 53c87ea commit e7c5046
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/RenderingSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,13 @@ void RenderingSensor::Render()
rc->PostRender();
}
}

if (!this->dataPtr->manualSceneUpdate &&
!this->dataPtr->scene->GetLegacyAutoGpuFlush())
{
// When GetLegacyAutoGpuFlush = true, that function gets
// called per sensor, so we don't have to do anything here
this->dataPtr->scene->PostRenderGpuFlush();
}
}

0 comments on commit e7c5046

Please sign in to comment.