diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-11 17:07:20 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-11 17:20:35 +0100 |
commit | 3350c0a77944068010794fe5a53cd63929a3fe28 (patch) | |
tree | 61eda6611cfff3a4b5230c9a415c8e0b3f2cfcff /src/video_core/renderer_opengl/gl_global_cache.cpp | |
parent | renderer_opengl/gl_global_cache: Append missing override specifiers (diff) | |
download | yuzu-3350c0a77944068010794fe5a53cd63929a3fe28.tar yuzu-3350c0a77944068010794fe5a53cd63929a3fe28.tar.gz yuzu-3350c0a77944068010794fe5a53cd63929a3fe28.tar.bz2 yuzu-3350c0a77944068010794fe5a53cd63929a3fe28.tar.lz yuzu-3350c0a77944068010794fe5a53cd63929a3fe28.tar.xz yuzu-3350c0a77944068010794fe5a53cd63929a3fe28.tar.zst yuzu-3350c0a77944068010794fe5a53cd63929a3fe28.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_global_cache.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_global_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_global_cache.cpp b/src/video_core/renderer_opengl/gl_global_cache.cpp index c7f32feaa..7161d1dea 100644 --- a/src/video_core/renderer_opengl/gl_global_cache.cpp +++ b/src/video_core/renderer_opengl/gl_global_cache.cpp @@ -57,8 +57,8 @@ GlobalRegion GlobalRegionCacheOpenGL::GetUncachedGlobalRegion(VAddr addr, u32 si return region; } -void GlobalRegionCacheOpenGL::ReserveGlobalRegion(const GlobalRegion& region) { - reserve[region->GetAddr()] = region; +void GlobalRegionCacheOpenGL::ReserveGlobalRegion(GlobalRegion region) { + reserve.insert_or_assign(region->GetAddr(), std::move(region)); } GlobalRegionCacheOpenGL::GlobalRegionCacheOpenGL(RasterizerOpenGL& rasterizer) |