Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10615 from AdmiralCurtiss/savestate-incorrect-err…
…or-message

TextureCacheBase: Don't log error while measuring state size.
  • Loading branch information
AdmiralCurtiss committed Apr 27, 2022
2 parents 4cd48e6 + 01d4a2e commit ccbdfd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/TextureCacheBase.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit ccbdfd4

Please sign in to comment.