From 7eb6c3a37a4e9d9b931360e0e3bb471add05ab0e Mon Sep 17 00:00:00 2001 From: "jc.yuan" Date: Fri, 26 Jan 2024 21:34:07 +0800 Subject: [PATCH] wrong size used --- native/cocos/renderer/gfx-validator/BufferValidator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/cocos/renderer/gfx-validator/BufferValidator.cpp b/native/cocos/renderer/gfx-validator/BufferValidator.cpp index a6e5f691b05..a2c60e8cdab 100644 --- a/native/cocos/renderer/gfx-validator/BufferValidator.cpp +++ b/native/cocos/renderer/gfx-validator/BufferValidator.cpp @@ -176,7 +176,7 @@ void BufferValidator::sanityCheck(const void *buffer, uint32_t size) { } if (DeviceValidator::getInstance()->isRecording()) { - _buffer.resize(_size); + _buffer.resize(size); memcpy(_buffer.data(), buffer, size); }