summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_cache.cpp
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2020-03-25 05:57:36 +0100
committerJames Rowe <jroweboy@gmail.com>2020-03-26 06:32:42 +0100
commitcf9c94d4017120b618194a720942ef4e5c8289bd (patch)
tree30cbea0216626e3a1db1a68120b54e6bd53804f5 /src/video_core/renderer_opengl/gl_shader_cache.cpp
parentFrontend/GPU: Refactor context management (diff)
downloadyuzu-cf9c94d4017120b618194a720942ef4e5c8289bd.tar
yuzu-cf9c94d4017120b618194a720942ef4e5c8289bd.tar.gz
yuzu-cf9c94d4017120b618194a720942ef4e5c8289bd.tar.bz2
yuzu-cf9c94d4017120b618194a720942ef4e5c8289bd.tar.lz
yuzu-cf9c94d4017120b618194a720942ef4e5c8289bd.tar.xz
yuzu-cf9c94d4017120b618194a720942ef4e5c8289bd.tar.zst
yuzu-cf9c94d4017120b618194a720942ef4e5c8289bd.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_cache.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp
index 8f59e0442..046ee55a5 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp
@@ -305,6 +305,7 @@ void ShaderCacheOpenGL::LoadDiskCache(const std::atomic_bool& stop_loading,
}
const std::vector gl_cache = disk_cache.LoadPrecompiled();
+ const auto supported_formats = GetSupportedFormats();
// Track if precompiled cache was altered during loading to know if we have to
// serialize the virtual precompiled cache file back to the hard drive
@@ -327,7 +328,6 @@ void ShaderCacheOpenGL::LoadDiskCache(const std::atomic_bool& stop_loading,
const auto worker = [&](Core::Frontend::GraphicsContext* context, std::size_t begin,
std::size_t end) {
const auto scope = context->Acquire();
- const auto supported_formats = GetSupportedFormats();
for (std::size_t i = begin; i < end; ++i) {
if (stop_loading) {