Skip to content

Commit 182c6b5

Browse files
author
Haydelj
committed
refactored the ibo/vbo man retrival code
1 parent 9f1d31b commit 182c6b5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Interface/Modules/Render/ES/SRInterface.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -838,13 +838,10 @@ namespace SCIRun {
838838
auto imc = mCore.getStaticComponent<ren::StaticIBOMan>();
839839
if(!vmc || !imc) return;
840840

841-
std::weak_ptr<ren::VBOMan> vm = vmc->instance_;
842-
std::weak_ptr<ren::IBOMan> im = imc->instance_;
843-
844-
if (std::shared_ptr<ren::VBOMan> vboMan = vm.lock())
841+
if (std::shared_ptr<ren::VBOMan> vboMan = vmc->instance_)
845842
{
846843
DEBUG_LOG_LINE_INFO;
847-
if (std::shared_ptr<ren::IBOMan> iboMan = im.lock())
844+
if (std::shared_ptr<ren::IBOMan> iboMan = imc->instance_)
848845
{
849846
DEBUG_LOG_LINE_INFO
850847
if (foundObject != mSRObjects.end())

0 commit comments

Comments
 (0)