LilyPad: fix0red the save state reload crash (memset overflow randomly null'ed the global dm variable and other things).

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@799 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11 committed 2009-03-16 22:17:50 +00:00
1 parent 7c00edfc07
commit d2ef4099fc
4 files changed
+64 -60

No files matched your search

+8 -8
View File
@@ -373,22 +373,22 @@ void GSDrawScanlineCodeGenerator::Init(int params)
if(m_sel.fb)
{
if(m_sel.edge)
if(m_sel.edge || m_sel.tfx != TFX_NONE)
{
movaps(xmm4, xmmword[ebx + 32]); // v.t
}
cvttps2dq(xmm4, xmm4);
if(m_sel.edge)
{
pshufhw(xmm3, xmm4, _MM_SHUFFLE(2, 2, 2, 2));
pshufd(xmm3, xmm3, _MM_SHUFFLE(3, 3, 3, 3));
psrlw(xmm3, 9);
pshufhw(xmm4, xmm4, _MM_SHUFFLE(2, 2, 2, 2));
pshufd(xmm4, xmm4, _MM_SHUFFLE(3, 3, 3, 3));
movdqa(xmmword[&m_env.temp.cov], xmm4);
movdqa(xmmword[&m_env.temp.cov], xmm3);
}
if(m_sel.tfx != TFX_NONE)
{
movaps(xmm4, xmmword[ebx + 32]); // v.t
if(m_sel.fst)
{
// GSVector4i vti(vt);