mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[tests] Fixed D3D11 device creation
This commit is contained in:
parent
bcb193a7fc
commit
6c9bc89c39
@ -14,9 +14,10 @@ int WINAPI WinMain(HINSTANCE hInstance,
|
|||||||
Com<ID3D11Device> device;
|
Com<ID3D11Device> device;
|
||||||
Com<ID3D11DeviceContext> context;
|
Com<ID3D11DeviceContext> context;
|
||||||
|
|
||||||
if (FAILED(D3D11CreateDevice(nullptr,
|
if (FAILED(D3D11CreateDevice(
|
||||||
D3D_DRIVER_TYPE_HARDWARE, nullptr, 0,
|
nullptr, D3D_DRIVER_TYPE_HARDWARE,
|
||||||
nullptr, 0, 0, &device, nullptr, &context))) {
|
nullptr, 0, nullptr, 0, D3D11_SDK_VERSION,
|
||||||
|
&device, nullptr, &context))) {
|
||||||
std::cerr << "Failed to create D3D11 device" << std::endl;
|
std::cerr << "Failed to create D3D11 device" << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,8 @@ public:
|
|||||||
m_adapter.ptr(),
|
m_adapter.ptr(),
|
||||||
D3D_DRIVER_TYPE_UNKNOWN,
|
D3D_DRIVER_TYPE_UNKNOWN,
|
||||||
nullptr, 0,
|
nullptr, 0,
|
||||||
nullptr, 0, 0,
|
nullptr, 0,
|
||||||
|
D3D11_SDK_VERSION,
|
||||||
&m_device,
|
&m_device,
|
||||||
&m_featureLevel,
|
&m_featureLevel,
|
||||||
&m_context);
|
&m_context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user