Merge pull request #1301 from clbr/master

textureSW: fix Map with offset
This commit is contained in:
Gregory Hainaut 2016-04-20 10:05:32 +02:00
commit 8b247bde35
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;