summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-12 06:46:30 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:35 +0200
commitcb78a1b494be2f6bc0927ed5b7a878236a3dc1c0 (patch)
tree52f38a2abef06ff08bcbf3ca2049bd28cbff69a6 /src/video_core/renderer_opengl
parentvk_rasterizer: Implement first index (diff)
downloadyuzu-cb78a1b494be2f6bc0927ed5b7a878236a3dc1c0.tar
yuzu-cb78a1b494be2f6bc0927ed5b7a878236a3dc1c0.tar.gz
yuzu-cb78a1b494be2f6bc0927ed5b7a878236a3dc1c0.tar.bz2
yuzu-cb78a1b494be2f6bc0927ed5b7a878236a3dc1c0.tar.lz
yuzu-cb78a1b494be2f6bc0927ed5b7a878236a3dc1c0.tar.xz
yuzu-cb78a1b494be2f6bc0927ed5b7a878236a3dc1c0.tar.zst
yuzu-cb78a1b494be2f6bc0927ed5b7a878236a3dc1c0.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp
index da0b36368..9391a4cd9 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp
@@ -238,16 +238,13 @@ void ShaderCache::LoadDiskResources(u64 title_id, std::stop_token stop_loading,
if (title_id == 0) {
return;
}
- auto shader_dir{Common::FS::GetYuzuPath(Common::FS::YuzuPath::ShaderDir)};
- auto base_dir{shader_dir / "new_opengl"};
- auto transferable_dir{base_dir / "transferable"};
- auto precompiled_dir{base_dir / "precompiled"};
- if (!Common::FS::CreateDir(shader_dir) || !Common::FS::CreateDir(base_dir) ||
- !Common::FS::CreateDir(transferable_dir) || !Common::FS::CreateDir(precompiled_dir)) {
- LOG_ERROR(Common_Filesystem, "Failed to create pipeline cache directories");
+ const auto shader_dir{Common::FS::GetYuzuPath(Common::FS::YuzuPath::ShaderDir)};
+ const auto base_dir{shader_dir / fmt::format("{:016x}", title_id)};
+ if (!Common::FS::CreateDir(shader_dir) || !Common::FS::CreateDir(base_dir)) {
+ LOG_ERROR(Common_Filesystem, "Failed to create shader cache directories");
return;
}
- shader_cache_filename = transferable_dir / fmt::format("{:016x}.bin", title_id);
+ shader_cache_filename = base_dir / "opengl.bin";
if (!workers) {
workers = CreateWorkers();