mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Fix crash with AVX2 due to unaligned pitch
This commit is contained in:
parent
eec0984dbe
commit
c65eb3c3ee
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue