Merge pull request #10615 from AdmiralCurtiss/savestate-incorrect-error-message

TextureCacheBase: Don't log error while measuring state size.
This commit is contained in:
Admiral H. Curtiss 2022-04-27 03:50:15 +02:00 committed by GitHub
commit ccbdfd446d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ void TextureCacheBase::SerializeTexture(AbstractTexture* tex, const TextureConfi
// needing to allocate/free an extra buffer.
u8* texture_data = p.DoExternal(total_size);
if (p.GetMode() == PointerWrap::MODE_MEASURE)
if (!skip_readback && p.GetMode() == PointerWrap::MODE_MEASURE)
{
ERROR_LOG_FMT(VIDEO, "Couldn't acquire {} bytes for serializing texture.", total_size);
return;