Skip to content

Commit

Permalink
Use the WARP software fallback in release builds too. Fixes issue #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Dahlström committed Jan 23, 2018
1 parent a4abc74 commit 2a7bf4a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions glTF-Toolkit/src/DeviceResources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -134,7 +128,6 @@ void DeviceResources::CreateDeviceResources()
OutputDebugStringA("Direct3D Adapter - WARP\n");
}
}
#endif

ThrowIfFailed(hr);

Expand Down

0 comments on commit 2a7bf4a

Please sign in to comment.