Local static initializers are evil, avoid them like plague.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4304 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11
2011-02-16 03:19:36 +00:00
parent 4dac657c9b
commit 65fc196688
25 changed files with 337 additions and 383 deletions
+7 -5
View File
@@ -24,9 +24,11 @@
#include "StdAfx.h"
#include "GSSetupPrimCodeGenerator.h"
GSSetupPrimCodeGenerator::GSSetupPrimCodeGenerator(GSScanlineEnvironment& env, uint64 key, void* ptr, size_t maxsize)
: CodeGenerator(maxsize, ptr)
, m_env(env)
using namespace Xbyak;
GSSetupPrimCodeGenerator::GSSetupPrimCodeGenerator(void* param, uint64 key, void* code, size_t maxsize)
: GSCodeGenerator(code, maxsize)
, m_env(*(GSScanlineEnvironment*)param)
{
m_sel.key = key;
@@ -79,7 +81,7 @@ void GSSetupPrimCodeGenerator::Depth()
{
if(!m_sel.sprite)
{
// GSVector4 t = dscan.p;
// GSVector4 p = dscan.p;
vmovaps(xmm0, ptr[edx + 16]);
@@ -184,7 +186,7 @@ void GSSetupPrimCodeGenerator::Depth()
{
if(!m_sel.sprite)
{
// GSVector4 t = dscan.p;
// GSVector4 p = dscan.p;
movaps(xmm0, ptr[edx + 16]);