mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
change the return type of submodel.passes to shared_ptr (#15267)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user