Files
cocos4/cocos/core/gfx/webgl2
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-16 10:28:27 +08:00
2021-02-03 17:51:20 +08:00
2021-11-11 17:21:09 +08:00
2021-02-03 17:51:22 +08:00