d3d12: Avoid implicit cast from int to bool in CHECK_HRESULT macro

This commit is contained in:
Vincent Lejeune 2016-01-01 19:15:14 +01:00
parent 854365e6ce
commit f38d0e92e7

View File

@ -9,7 +9,7 @@
using namespace Microsoft::WRL;
#define CHECK_HRESULT(expr) if (HRESULT hr = (expr)) if (FAILED(hr)) throw EXCEPTION("HRESULT = 0x%x", hr)
#define CHECK_HRESULT(expr) { HRESULT hr = (expr); if (FAILED(hr)) throw EXCEPTION("HRESULT = 0x%x", hr); }
/**
* Send data to dst pointer without polluting cache.