summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2019-07-06 01:14:05 -0300
committerGravatar ReinUsesLisp2019-07-06 01:14:05 -0300
commit83050c949594fba1248a73c8a2c343f970bd3f06 (patch)
tree2b1dd226e35656a5786b77b486d5dd556bcfc4d8 /src
parentgl_rasterizer: Fix nullptr dereference on disabled buffers (diff)
downloadyuzu-83050c949594fba1248a73c8a2c343f970bd3f06.tar.gz
yuzu-83050c949594fba1248a73c8a2c343f970bd3f06.tar.xz
yuzu-83050c949594fba1248a73c8a2c343f970bd3f06.zip
buffer_cache: Try to fix MinGW build
Diffstat (limited to 'src')
-rw-r--r--src/video_core/buffer_cache.h2
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:
250 if (auto entry = TryGetReservedBuffer(host_ptr)) { 250 if (auto entry = TryGetReservedBuffer(host_ptr)) {
251 return entry; 251 return entry;
252 } 252 }
253 return std::make_shared<Buffer::element_type>(cpu_addr, host_ptr); 253 return std::make_shared<CachedBuffer<BufferStorageType>>(cpu_addr, host_ptr);
254 } 254 }
255 255
256 Buffer TryGetReservedBuffer(u8* host_ptr) { 256 Buffer TryGetReservedBuffer(u8* host_ptr) {