Skip to content

Commit ec9e822

Browse files
committed
Ex22 doesnt crash any more
@devshgraphicsprogramming you need to check whether this break make sense, i dont understand this loop
1 parent 64f1ebd commit ec9e822

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/nbl/ext/RadeonRays/RadeonRays.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,11 @@ void Manager::makeInstance( NblInstanceRRInstanceCache& instanceCache, MockScene
125125
continue;
126126
::RadeonRays::Shape* shape = cpuAssociation.second;
127127
auto successAndLocation = gpuCache.emplace(gpumeshbuffer,shape);
128-
if (gpumeshbuffer==mb)
128+
if (gpumeshbuffer == mb)
129+
{
129130
found = successAndLocation.first;
131+
break;
132+
}
130133
}
131134
notRefreshedAlready = false;
132135
}

0 commit comments

Comments
 (0)