From bc38796323ce0a0d30e59c365b46151c605b4256 Mon Sep 17 00:00:00 2001 From: gabest11 Date: Wed, 8 Feb 2012 20:21:18 +0000 Subject: [PATCH] GSdx: full boot fixed, thanks for finding, I always use fast boot. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5090 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/GSRendererSW.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/GSdx/GSRendererSW.cpp b/plugins/GSdx/GSRendererSW.cpp index 4e9da1b068..44de110260 100644 --- a/plugins/GSdx/GSRendererSW.cpp +++ b/plugins/GSdx/GSRendererSW.cpp @@ -355,6 +355,16 @@ void GSRendererSW::Draw() memcpy(sd->index, m_index.buff, sizeof(uint32) * m_index.tail); + GSVector4i scissor = GSVector4i(context->scissor.in); + GSVector4i bbox = GSVector4i(m_vt.m_min.p.floor().xyxy(m_vt.m_max.p.ceil())); + GSVector4i r = bbox.rintersect(scissor); + + scissor.z = std::min(scissor.z, (int)context->FRAME.FBW * 64); // TODO: find a game that overflows and check which one is the right behaviour + + sd->scissor = scissor; + sd->bbox = bbox; + sd->frame = m_perfmon.GetFrame(); + if(!GetScanlineGlobalData(sd)) return; if(0) if(LOG) @@ -379,16 +389,6 @@ void GSRendererSW::Draw() } } - GSVector4i scissor = GSVector4i(context->scissor.in); - GSVector4i bbox = GSVector4i(m_vt.m_min.p.floor().xyxy(m_vt.m_max.p.ceil())); - GSVector4i r = bbox.rintersect(scissor); - - scissor.z = std::min(scissor.z, (int)context->FRAME.FBW * 64); // TODO: find a game that overflows and check which one is the right behaviour - - sd->scissor = scissor; - sd->bbox = bbox; - sd->frame = m_perfmon.GetFrame(); - // GSScanlineGlobalData& gd = sd->global;