Files
cocos4/cocos/core/gfx
Yiwen 8402289d77 fix the bugs found in PR9854. (#9875)
* 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

* fix the bugs introduced in PR9854.
bug: forgot to update the active texUnit in stateCache.

* reduce the use of dot operator to improve performance.

* fix the bug introduced in the previous commit

* reduce the use of dot operator to improve performance
2022-01-05 23:20:47 +08:00
..
2021-09-24 11:50:44 +08:00
2021-08-31 19:40:50 +08:00
2021-08-31 19:40:50 +08:00