diff --git a/src/util/gpu_device.cpp b/src/util/gpu_device.cpp index fd353a844..3ab012051 100644 --- a/src/util/gpu_device.cpp +++ b/src/util/gpu_device.cpp @@ -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(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));