textureSW: fix Map with offset

This commit is contained in:
Lauri Kasanen 2016-04-19 21:22:53 +03:00
parent 943e000c41
commit 994c9147f5
1 changed files with 1 additions and 1 deletions

View File

@ -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;