mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-14 14:10:13 +02:00
Minor fix for when -gpu switch not provided
This commit is contained in:
parent
71d1471cab
commit
b6d2db759b
@ -618,7 +618,9 @@ bool CreateDevice( int adapter, _Outptr_ ID3D11Device** pDevice )
|
|||||||
}
|
}
|
||||||
|
|
||||||
D3D_FEATURE_LEVEL fl;
|
D3D_FEATURE_LEVEL fl;
|
||||||
HRESULT hr = s_DynamicD3D11CreateDevice( pAdapter.Get(), D3D_DRIVER_TYPE_UNKNOWN, nullptr, createDeviceFlags, featureLevels, _countof(featureLevels),
|
HRESULT hr = s_DynamicD3D11CreateDevice( pAdapter.Get(),
|
||||||
|
(pAdapter) ? D3D_DRIVER_TYPE_UNKNOWN : D3D_DRIVER_TYPE_HARDWARE,
|
||||||
|
nullptr, createDeviceFlags, featureLevels, _countof(featureLevels),
|
||||||
D3D11_SDK_VERSION, pDevice, &fl, nullptr );
|
D3D11_SDK_VERSION, pDevice, &fl, nullptr );
|
||||||
if ( SUCCEEDED(hr) )
|
if ( SUCCEEDED(hr) )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user