mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 18:20:36 +01:00
GS/HW: Fix crash with AVX2 due to unaligned pitch
This commit is contained in:
1 parent
eec0984dbe
commit
c65eb3c3ee
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user