mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 13:37:48 +00:00
UWP support
This commit is contained in:
@@ -41,7 +41,11 @@ static inline void ThrowIfFailed(HRESULT hr)
|
||||
if (FAILED(hr))
|
||||
{
|
||||
// Set a breakpoint on this line to catch Win32 API errors.
|
||||
#if !WINDOWS_STORE
|
||||
_com_error err(hr);
|
||||
#else
|
||||
_com_error err(hr, L"D3D11 fail");
|
||||
#endif
|
||||
LPCTSTR errMsg = err.ErrorMessage();
|
||||
Log.report(logvisor::Fatal, errMsg);
|
||||
}
|
||||
|
||||
@@ -38,7 +38,11 @@ static inline void ThrowIfFailed(HRESULT hr)
|
||||
if (FAILED(hr))
|
||||
{
|
||||
// Set a breakpoint on this line to catch Win32 API errors.
|
||||
#if !WINDOWS_STORE
|
||||
_com_error err(hr);
|
||||
#else
|
||||
_com_error err(hr, L"D3D12 fail");
|
||||
#endif
|
||||
LPCTSTR errMsg = err.ErrorMessage();
|
||||
Log.report(logvisor::Fatal, errMsg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user