mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:13:09 +08:00
adjust api (#4539)
This commit is contained in:
@@ -401,7 +401,7 @@ export class TextureBase extends Asset {
|
||||
});
|
||||
if (!this.isCompressed) {
|
||||
const defaultImg = cc.builtinResMgr.get('black-texture').image as ImageAsset;
|
||||
this._uploadData(defaultImg.data as HTMLCanvasElement, level, arrayIndex);
|
||||
this.uploadData(defaultImg.data as HTMLCanvasElement, level, arrayIndex);
|
||||
}
|
||||
postLoadImage(image);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user