Skip to content

Commit e4487ba

Browse files
author
devsh
committed
small lifetime issue fix
1 parent 5813d10 commit e4487ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/video/utilities/CAssetConverter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,6 @@ class GetDependantVisit<ICPUDescriptorSet> : public GetDependantVisitBase<ICPUDe
19551955
lastElement = element;
19561956
//
19571957
auto& outInfo = infos.emplace_back();
1958-
outInfo.desc = std::move(depObj);
19591958
// extra stuff
19601959
auto argTuple = std::tuple<const ExtraArgs&...>(extraArgs...);
19611960
if constexpr (std::is_same_v<DepType,ICPUBuffer>)
@@ -1985,6 +1984,7 @@ class GetDependantVisit<ICPUDescriptorSet> : public GetDependantVisitBase<ICPUDe
19851984
lastCombinedSampler = nullptr; // for debuggability
19861985
}
19871986
}
1987+
outInfo.desc = std::move(depObj);
19881988
return true;
19891989
}
19901990
};

0 commit comments

Comments
 (0)