GS/HW: Fix crash in PossibleCLUTDraw()

This commit is contained in:
Stenzek 2023-05-12 01:10:39 +10:00 committed by refractionpcsx2
parent 3436bb3792
commit 38480d3aed
1 changed files with 2 additions and 1 deletions

View File

@ -4788,7 +4788,8 @@ GSRendererHW::CLUTDrawTestResult GSRendererHW::PossibleCLUTDraw()
if (HasEEUpload(r))
return CLUTDrawTestResult::CLUTDrawOnCPU;
GSTextureCache::Target* tgt = g_texture_cache->GetExactTarget(m_cached_ctx.TEX0.TBP0, m_cached_ctx.TEX0.TBW, m_cached_ctx.TEX0.PSM);
GSTextureCache::Target* tgt = g_texture_cache->GetExactTarget(
m_cached_ctx.TEX0.TBP0, m_cached_ctx.TEX0.TBW, GSTextureCache::RenderTarget);
if (tgt)
{
bool is_dirty = false;