mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-19 14:55:38 +00:00
GL/ShaderCache: Linux build fix
This commit is contained in:
parent
ddf52cc8c7
commit
4ea3c994f6
|
@ -249,7 +249,7 @@ std::optional<Program> ShaderCache::GetProgram(const std::string_view vertex_sha
|
|||
|
||||
Program prog;
|
||||
if (prog.CreateFromBinary(data.data(), static_cast<u32>(data.size()), iter->second.blob_format))
|
||||
return prog;
|
||||
return std::optional<Program>(std::move(prog));
|
||||
|
||||
Log_WarningPrintf(
|
||||
"Failed to create program from binary, this may be due to a driver or GPU Change. Recreating cache.");
|
||||
|
@ -276,7 +276,7 @@ std::optional<Program> ShaderCache::CompileProgram(const std::string_view& verte
|
|||
if (!prog.Link())
|
||||
return std::nullopt;
|
||||
|
||||
return prog;
|
||||
return std::optional<Program>(std::move(prog));
|
||||
}
|
||||
|
||||
std::optional<Program> ShaderCache::CompileAndAddProgram(const CacheIndexKey& key,
|
||||
|
|
Loading…
Reference in a new issue