Skip to content
Permalink
Browse files

Merge pull request #7926 from stenzek/clear-tile-array

FramebufferManager: Only clear tile array when valid
  • Loading branch information...
stenzek committed Mar 24, 2019
2 parents c89139d + cff60f5 commit eaa1874875187fc247b304a2f6ebd87b0cdc179b
Showing with 6 additions and 2 deletions.
  1. +6 −2 Source/Core/VideoCommon/FramebufferManager.cpp
@@ -407,15 +407,19 @@ void FramebufferManager::InvalidatePeekCache(bool forced)
{
if (forced || m_efb_color_cache.out_of_date)
{
if (m_efb_color_cache.valid)
std::fill(m_efb_color_cache.tiles.begin(), m_efb_color_cache.tiles.end(), false);

m_efb_color_cache.valid = false;
m_efb_color_cache.out_of_date = false;
std::fill(m_efb_color_cache.tiles.begin(), m_efb_color_cache.tiles.end(), false);
}
if (forced || m_efb_depth_cache.out_of_date)
{
if (m_efb_depth_cache.valid)
std::fill(m_efb_depth_cache.tiles.begin(), m_efb_depth_cache.tiles.end(), false);

m_efb_depth_cache.valid = false;
m_efb_depth_cache.out_of_date = false;
std::fill(m_efb_depth_cache.tiles.begin(), m_efb_depth_cache.tiles.end(), false);
}
}

0 comments on commit eaa1874

Please sign in to comment.
You can’t perform that action at this time.