mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #7926 from stenzek/clear-tile-array
FramebufferManager: Only clear tile array when valid
This commit is contained in:
commit
eaa1874875
@ -407,15 +407,19 @@ void FramebufferManager::InvalidatePeekCache(bool forced)
|
|||||||
{
|
{
|
||||||
if (forced || m_efb_color_cache.out_of_date)
|
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.valid = false;
|
||||||
m_efb_color_cache.out_of_date = 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 (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.valid = false;
|
||||||
m_efb_depth_cache.out_of_date = false;
|
m_efb_depth_cache.out_of_date = false;
|
||||||
std::fill(m_efb_depth_cache.tiles.begin(), m_efb_depth_cache.tiles.end(), false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user