Try direct D3D9 init before asking the device manager
This commit is contained in:
parent
8760cd4056
commit
032ed9ddd1
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user