diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-20 04:40:50 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2022-12-20 04:40:50 +0100 |
commit | c6590ad07b384762fd90ee8852796ec681a69286 (patch) | |
tree | c0d8d2d157f3bb4be01331f2da459c0f68ca4d7b /src/video_core/buffer_cache | |
parent | tests: Add ScratchBuffer tests (diff) | |
download | yuzu-c6590ad07b384762fd90ee8852796ec681a69286.tar yuzu-c6590ad07b384762fd90ee8852796ec681a69286.tar.gz yuzu-c6590ad07b384762fd90ee8852796ec681a69286.tar.bz2 yuzu-c6590ad07b384762fd90ee8852796ec681a69286.tar.lz yuzu-c6590ad07b384762fd90ee8852796ec681a69286.tar.xz yuzu-c6590ad07b384762fd90ee8852796ec681a69286.tar.zst yuzu-c6590ad07b384762fd90ee8852796ec681a69286.zip |
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index a8bd5585b..6c8d98946 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -1926,7 +1926,7 @@ std::span<const u8> BufferCache<P>::ImmediateBufferWithData(VAddr cpu_addr, size template <class P> std::span<u8> BufferCache<P>::ImmediateBuffer(size_t wanted_capacity) { - immediate_buffer_alloc.resize(wanted_capacity); + immediate_buffer_alloc.resize_destructive(wanted_capacity); return std::span<u8>(immediate_buffer_alloc.data(), wanted_capacity); } |