1
0

Try direct D3D9 init before asking the device manager

This commit is contained in:
Hendrik Leppkes 2013-06-10 20:21:01 +02:00
parent 8760cd4056
commit 032ed9ddd1

View File

@ -70,14 +70,13 @@ mfxStatus CD3D9Device::FillD3DPP(mfxHDL hWindow, D3DPRESENT_PARAMETERS &D3DPP)
mfxStatus CD3D9Device::Init(int nAdapterNum)
{
if (m_pDeviceManager9)
mfxStatus sts = InitFromScratch(nAdapterNum);
if (sts != MFX_ERR_NONE && m_pDeviceManager9)
{
return InitFromRenderer(nAdapterNum);
}
else
{
return InitFromScratch(nAdapterNum);
Close();
sts = InitFromRenderer(nAdapterNum);
}
return sts;
}
mfxStatus CD3D9Device::Reset()