diff --git a/glTF-Toolkit/src/DeviceResources.cpp b/glTF-Toolkit/src/DeviceResources.cpp index 0e5ae15..9505dbe 100644 --- a/glTF-Toolkit/src/DeviceResources.cpp +++ b/glTF-Toolkit/src/DeviceResources.cpp @@ -105,12 +105,6 @@ void DeviceResources::CreateDeviceResources() context.GetAddressOf() // Returns the device immediate context. ); } -#if defined(NDEBUG) - else - { - throw std::exception("No Direct3D hardware device found"); - } -#else if (FAILED(hr)) { // If the initialization fails, fall back to the WARP device. @@ -134,7 +128,6 @@ void DeviceResources::CreateDeviceResources() OutputDebugStringA("Direct3D Adapter - WARP\n"); } } -#endif ThrowIfFailed(hr);