diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-28 16:57:56 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-28 17:11:50 +0200 |
commit | 45fb74d2623182b38af422bc6c8a51040860143f (patch) | |
tree | ad65e21b3984d876241fc478d7624abfceb55e86 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1165 from bunnei/shader-cache (diff) | |
download | yuzu-45fb74d2623182b38af422bc6c8a51040860143f.tar yuzu-45fb74d2623182b38af422bc6c8a51040860143f.tar.gz yuzu-45fb74d2623182b38af422bc6c8a51040860143f.tar.bz2 yuzu-45fb74d2623182b38af422bc6c8a51040860143f.tar.lz yuzu-45fb74d2623182b38af422bc6c8a51040860143f.tar.xz yuzu-45fb74d2623182b38af422bc6c8a51040860143f.tar.zst yuzu-45fb74d2623182b38af422bc6c8a51040860143f.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 9951d8178..fddfb2d83 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -425,8 +425,8 @@ std::tuple<u8*, GLintptr, GLintptr> RasterizerOpenGL::UploadMemory(u8* buffer_pt std::tie(buffer_ptr, buffer_offset) = AlignBuffer(buffer_ptr, buffer_offset, alignment); GLintptr uploaded_offset = buffer_offset; - const auto& memory_manager = Core::System::GetInstance().GPU().memory_manager; - const boost::optional<VAddr> cpu_addr{memory_manager->GpuToCpuAddress(gpu_addr)}; + auto& memory_manager = Core::System::GetInstance().GPU().MemoryManager(); + const boost::optional<VAddr> cpu_addr{memory_manager.GpuToCpuAddress(gpu_addr)}; Memory::ReadBlock(*cpu_addr, buffer_ptr, size); buffer_ptr += size; |