When specifying a LUID, D3D_DRIVER_TYPE_UNKNOWN must be set :) That -should- fix Will still need to test Oculus hardware specifically later.
@@ -47,7 +47,7 @@ bool d3d_init(LUID *adapter_id) {
}
D3D_FEATURE_LEVEL featureLevels[] = { D3D_FEATURE_LEVEL_11_1, D3D_FEATURE_LEVEL_11_0 };
- if (FAILED(D3D11CreateDevice(final_adapter, D3D_DRIVER_TYPE_HARDWARE, 0, creation_flags, featureLevels, _countof(featureLevels), D3D11_SDK_VERSION, &d3d_device, nullptr, &d3d_context)))
+ if (FAILED(D3D11CreateDevice(final_adapter, final_adapter == nullptr ? D3D_DRIVER_TYPE_HARDWARE : D3D_DRIVER_TYPE_UNKNOWN, 0, creation_flags, featureLevels, _countof(featureLevels), D3D11_SDK_VERSION, &d3d_device, nullptr, &d3d_context)))
return false;
if (final_adapter != nullptr)
