From 994c9147f59398283ab27bc72f2756237ff4dd7c Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Tue, 19 Apr 2016 21:22:53 +0300 Subject: [PATCH] textureSW: fix Map with offset --- plugins/GSdx/GSTextureSW.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GSdx/GSTextureSW.cpp b/plugins/GSdx/GSTextureSW.cpp index 0baba7282b..43e7222bbe 100644 --- a/plugins/GSdx/GSTextureSW.cpp +++ b/plugins/GSdx/GSTextureSW.cpp @@ -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;