mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
check TextureView and Texture format (#17143)
This commit is contained in:
@@ -120,6 +120,8 @@ void TextureValidator::doInit(const TextureViewInfo &info) {
|
||||
_inited = true;
|
||||
_isTextureView = true;
|
||||
CC_ASSERT(info.texture && static_cast<TextureValidator *>(info.texture)->isInited());
|
||||
// TextureView format should equal to the corresponding Texture format.
|
||||
CC_ASSERT(info.texture->getFormat() == info.format);
|
||||
|
||||
/////////// execute ///////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user