Skip to content

Commit

Permalink
GPUDevice: Warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Aug 26, 2024
1 parent 667d1bf commit 542ef3a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util/gpu_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,7 @@ void GPUDevice::CloseShaderCache()
if (GetPipelineCacheData(&data))
{
// Save disk writes if it hasn't changed, think of the poor SSDs.
if (s_pipeline_cache_size != static_cast<s64>(data.size()) ||
s_pipeline_cache_hash != SHA1Digest::GetDigest(data.cspan()))
if (s_pipeline_cache_size != data.size() || s_pipeline_cache_hash != SHA1Digest::GetDigest(data.cspan()))
{
Error error;
INFO_LOG("Compressing and writing {} bytes to '{}'", data.size(), Path::GetFileName(s_pipeline_cache_path));
Expand Down

0 comments on commit 542ef3a

Please sign in to comment.