mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-24 10:43:16 +00:00
gl_shader_disk_cache: Make variable non-const in decompiled entry case
std::move does nothing when applied to a const variable. Resources can't be moved if the object is immutable. With this change, we don't end up making several unnecessary heap allocations and copies.
This commit is contained in:
parent
f417be9d3b
commit
5e4c227608
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ ShaderDiskCacheOpenGL::LoadPrecompiledFile(FileUtil::IOFile& file) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto entry = LoadDecompiledEntry();
|
auto entry = LoadDecompiledEntry();
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue