GSdx: Fix an unfriendly crash when trying to create a device on a machine that only supports DX9 when DX10/11 is configured (Think temporary downgrading your video card, and then running PCSX2).

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3161 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2010-06-05 04:06:24 +00:00
parent 18f7132e89
commit b7c9aa63cd
2 changed files with 5 additions and 1 deletions

View File

@ -232,6 +232,10 @@ static INT32 _GSopen(void* dsp, char* title, int renderer)
if( !s_gs->CreateDevice(dev) )
{
// This probably means the user has DX11 configured with a video card that is only DX9
// compliant. Cound mean drivr issues of some sort also, but to be sure, that's the most
// common cause of device creation errors. :) --air
GSclose();
return -1;
}

View File

@ -81,7 +81,7 @@ public:
{
InvalidateTextureCache();
ResetPrim();
m_dev->Reset(1, 1);
if( m_dev ) m_dev->Reset(1, 1);
}
virtual void VSync(int field);
virtual bool MakeSnapshot(const string& path);