mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 11:31:59 +08:00
acb3fce607
* Add extra steps to the destroy functions to update the cached resources. This will make sure that the resources in device.stateCache is valid. * unbind a resource before destroying it * remove unnecessary non-null assertion * update the state after the destruction to make the process robust