Skip to content

Commit

Permalink
GS/TC: Fix crash in debug message (only affects debug device)
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Aug 11, 2023
1 parent ddff4ec commit cd980c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/GS/Renderers/HW/GSTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(GIFRegTEX0 TEX0, const GSVe
// if It's an old target and it's being completely overwritten, kill it.
if (!preserve_rgb && !preserve_alpha && TEX0.TBW != t->m_TEX0.TBW && TEX0.TBW > 1 && t->m_age >= 1)
{
GL_INS("TC: Deleting RT BP 0x%x BW %d PSM %s due to width change to %d", t->m_TEX0.TBP0, t->m_TEX0.TBW, t->m_TEX0.PSM, TEX0.TBW);
GL_INS("TC: Deleting RT BP 0x%x BW %d PSM %s due to width change to %d", t->m_TEX0.TBP0, t->m_TEX0.TBW, psm_str(t->m_TEX0.PSM), TEX0.TBW);
InvalidateSourcesFromTarget(t);
i = list.erase(i);
delete t;
Expand Down

0 comments on commit cd980c6

Please sign in to comment.