From 2d83b39532f2a4723d70093a6abd9a1236a0f760 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 30 Apr 2020 22:43:01 -0400 Subject: [PATCH] gl_shader_manager: Avoid unnecessary std::vector copy in LoadDiskCache() Same behavior, but without an unnecessary reallocation. --- src/video_core/renderer_opengl/gl_shader_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_shader_manager.cpp b/src/video_core/renderer_opengl/gl_shader_manager.cpp index d232dceb45..de496ac6db 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.cpp +++ b/src/video_core/renderer_opengl/gl_shader_manager.cpp @@ -445,7 +445,7 @@ void ShaderProgramManager::LoadDiskCache(const std::atomic_bool& stop_loading, if (!transferable) { return; } - const auto raws = *transferable; + const auto& raws = *transferable; auto [decompiled, dumps] = disk_cache.LoadPrecompiled();