GS/HW: Fix crash with AVX2 due to unaligned pitch

This commit is contained in:
Stenzek 2023-02-10 22:51:10 +10:00 committed by refractionpcsx2
parent eec0984dbe
commit c65eb3c3ee
1 changed files with 1 additions and 1 deletions

View File

@ -3116,7 +3116,7 @@ void GSTextureCache::Target::Update(bool reset_age)
}
else
{
int pitch = ((r.width()+3) & ~3) * 4;
const int pitch = Common::AlignUpPow2(r.width() * sizeof(u32), 32);
g_gs_renderer->m_mem.ReadTexture(off, r, s_unswizzle_buffer, pitch, TEXA);
t->Update(r, s_unswizzle_buffer, pitch);