mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-28 20:54:46 +00:00
textureSW: fix Map with offset
This commit is contained in:
parent
943e000c41
commit
994c9147f5
@ -70,7 +70,7 @@ bool GSTextureSW::Map(GSMap& m, const GSVector4i* r)
|
||||
{
|
||||
if (!m_mapped.test_and_set())
|
||||
{
|
||||
m.bits = (uint8*)m_data + ((m_pitch * r2.top + r2.left) << 2);
|
||||
m.bits = (uint8*)m_data + m_pitch * r2.top + (r2.left << 2);
|
||||
m.pitch = m_pitch;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user