change the return type of submodel.passes to shared_ptr (#15267)

This commit is contained in:
江战
2023-06-01 14:05:03 +08:00
committed by GitHub
parent a8eb030f90
commit 175d8a4c7e
12 changed files with 34 additions and 31 deletions
@@ -158,7 +158,7 @@ void ShadowMapBatchedQueue::destroy() {
int ShadowMapBatchedQueue::getShadowPassIndex(const scene::SubModel *subModel) const {
int i = 0;
for (const auto &pass : subModel->getPasses()) {
for (const auto &pass : *(subModel->getPasses())) {
if (pass->getPhase() == _phaseID) {
return i;
}