Skip to content

Commit 9152ed3

Browse files
committed
Ok, now it's fine
1 parent 4cd0ff0 commit 9152ed3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/nbl/ext/RadeonRays/RadeonRays.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,11 @@ void Manager::makeInstance( NblInstanceRRInstanceCache& instanceCache, MockScene
124124
if (!gpumeshbuffer)
125125
continue;
126126
::RadeonRays::Shape* shape = cpuAssociation.second;
127-
auto successAndLocation = gpuCache.emplace(gpumeshbuffer,shape);
128-
if (gpumeshbuffer == mb)
129-
{
130-
found = successAndLocation.first;
131-
break;
132-
}
127+
gpuCache.emplace(gpumeshbuffer,shape);
133128
}
134129
notRefreshedAlready = false;
130+
131+
found = gpuCache.find(mb);
135132
}
136133
if (found==gpuCache.end())
137134
continue;

0 commit comments

Comments
 (0)