diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-06 06:14:05 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-06 06:14:05 +0200 |
commit | 83050c949594fba1248a73c8a2c343f970bd3f06 (patch) | |
tree | 2b1dd226e35656a5786b77b486d5dd556bcfc4d8 /src | |
parent | gl_rasterizer: Fix nullptr dereference on disabled buffers (diff) | |
download | yuzu-83050c949594fba1248a73c8a2c343f970bd3f06.tar yuzu-83050c949594fba1248a73c8a2c343f970bd3f06.tar.gz yuzu-83050c949594fba1248a73c8a2c343f970bd3f06.tar.bz2 yuzu-83050c949594fba1248a73c8a2c343f970bd3f06.tar.lz yuzu-83050c949594fba1248a73c8a2c343f970bd3f06.tar.xz yuzu-83050c949594fba1248a73c8a2c343f970bd3f06.tar.zst yuzu-83050c949594fba1248a73c8a2c343f970bd3f06.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/buffer_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache.h b/src/video_core/buffer_cache.h index e51f2418c..fa2238a92 100644 --- a/src/video_core/buffer_cache.h +++ b/src/video_core/buffer_cache.h @@ -250,7 +250,7 @@ private: if (auto entry = TryGetReservedBuffer(host_ptr)) { return entry; } - return std::make_shared<Buffer::element_type>(cpu_addr, host_ptr); + return std::make_shared<CachedBuffer<BufferStorageType>>(cpu_addr, host_ptr); } Buffer TryGetReservedBuffer(u8* host_ptr) { |