mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
18f7132e89
commit
b7c9aa63cd
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue