diff --git a/cocos/gfx/empty/empty-buffer.ts b/cocos/gfx/empty/empty-buffer.ts index 798d3a77b1..c39d670454 100644 --- a/cocos/gfx/empty/empty-buffer.ts +++ b/cocos/gfx/empty/empty-buffer.ts @@ -47,6 +47,9 @@ export class EmptyBuffer extends Buffer { } } public destroy (): void {} - public resize (size: number): void {} + public resize (size: number): void { + this._size = size; + this._count = this._size / this._stride; + } public update (buffer: Readonly, size?: number): void {} }