mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 05:45:38 +00:00
GPUDevice: Warning fix
This commit is contained in:
parent
2275aa85d9
commit
7665b1c760
|
@ -448,8 +448,7 @@ void GPUDevice::CloseShaderCache()
|
||||||
if (GetPipelineCacheData(&data))
|
if (GetPipelineCacheData(&data))
|
||||||
{
|
{
|
||||||
// Save disk writes if it hasn't changed, think of the poor SSDs.
|
// Save disk writes if it hasn't changed, think of the poor SSDs.
|
||||||
if (s_pipeline_cache_size != static_cast<s64>(data.size()) ||
|
if (s_pipeline_cache_size != data.size() || s_pipeline_cache_hash != SHA1Digest::GetDigest(data.cspan()))
|
||||||
s_pipeline_cache_hash != SHA1Digest::GetDigest(data.cspan()))
|
|
||||||
{
|
{
|
||||||
Error error;
|
Error error;
|
||||||
INFO_LOG("Compressing and writing {} bytes to '{}'", data.size(), Path::GetFileName(s_pipeline_cache_path));
|
INFO_LOG("Compressing and writing {} bytes to '{}'", data.size(), Path::GetFileName(s_pipeline_cache_path));
|
||||||
|
|
Loading…
Reference in a new issue