While the texture is destroyed, the old validator is destroyed and new validator inited.
But framebuffer validator maintains the old one as hash is the same, so when it start the validation check, the old texture validator jumped out and assertion failed.
* Add a feature to select mipmap range to image asset.
* fix format
* fix format
* modify comments, remove uncessary methods
* finx comments.
* fix logic problem
* fix mipmap range problems
* Add validation information incase someone wants to generate mipmap for compressed texture
* remove some validations to make gfx bakend clear
* fix a stupid typo
* Add validation information for setMipRange
* use assertID to validate the mipmap range
* draft
* fix some stupid bugs introduced in the lase commit
* fixed bug when init webgl's texture.
* draft
* fix some bugs
* fix some warnings
* fix undefined type cast
* For Vulkan device, query the storage feature through optimal tiling instead of linear tiling.
* fix some bugs appear when resize texture, clean the changes. all tests passed.
* remove debug codes, improve performance, correct the framebuffer size.
* make some input parameters readonly
* Make the gfx function's parameter's access priority the same as native engine
* remove uncessary members and interface for ES3, move getGLSampler into IWebGL2GPUSampler, delete WebGL2CmfFuncCreateSampler...
* supply a default context when surface destroyed (#4222)
* Fix loop audio would stop for ios system (#4254)
* IOS system has an uncertain state between foreground and background, and our condition sometimes miss the point to load buffers.
* Queue for 3 buffers might be too short to live, use 4 or even more instead.
* Use same mtx for write (#4220)
* create a seperated branch to solve the Issue 8203
* Add format feature for query
* fix bugs and add formatFeature info for metal backend.
* 1. fix some bugs; 2. correct some condition judgements; 3. remove some uncessary comments;
* fix a bug of textureExclusive, fix some typos.
* clean the code, correct some formatFeatures.
* fix bugs in metal backend, fix bugs found on windows.
* Use a proper log funciton in DeviceValidator. Fix code format.
* fix perfect-forwarding in CondVar interface