Skip to content

Commit

Permalink
wrong size used
Browse files Browse the repository at this point in the history
  • Loading branch information
jcyuan committed Jan 26, 2024
1 parent d78acc9 commit 7eb6c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/cocos/renderer/gfx-validator/BufferValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7eb6c3a

Please sign in to comment.