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

This commit is contained in:
Stenzek authored and refractionpcsx2 committed 2023-02-10 14:15:33 +00:00
1 parent eec0984dbe
commit c65eb3c3ee
1 file changed
+1 -1
+1 -1
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);