mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Fix the crash of render texture scene on metal. (#8056)
This commit is contained in:
+5
-2
@@ -400,12 +400,15 @@ export class Root {
|
||||
}
|
||||
|
||||
legacyCC.director.emit(legacyCC.Director.EVENT_BEFORE_COMMIT);
|
||||
|
||||
const cameraList: Camera[] = [];
|
||||
for (let i = 0; i < windows.length; i++) {
|
||||
const window = windows[i];
|
||||
const cameras = window.extractRenderCameras();
|
||||
this._pipeline.render(cameras);
|
||||
cameras.forEach((camera) => {
|
||||
cameraList.push(camera);
|
||||
});
|
||||
}
|
||||
this._pipeline.render(cameraList);
|
||||
this._device.present();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user