summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3DBase
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-09-23 03:51:25 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-09-23 03:51:25 +0000
commit2f5b2dd6bb2db2464d9b9c9d95fc0a57559fa331 (patch)
tree2d5e8fecedb2d728c026a06ebb1930badd4aeccc /Graphics/GraphicsEngineD3DBase
parentReworked vulkan dynamic heap deallocation to use main release queue (diff)
downloadDiligentCore-2f5b2dd6bb2db2464d9b9c9d95fc0a57559fa331.tar.gz
DiligentCore-2f5b2dd6bb2db2464d9b9c9d95fc0a57559fa331.zip
Reworked message formatting
Diffstat (limited to 'Graphics/GraphicsEngineD3DBase')
-rw-r--r--Graphics/GraphicsEngineD3DBase/include/D3DErrors.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngineD3DBase/include/D3DErrors.h b/Graphics/GraphicsEngineD3DBase/include/D3DErrors.h
index b1d1e068..d3d3792f 100644
--- a/Graphics/GraphicsEngineD3DBase/include/D3DErrors.h
+++ b/Graphics/GraphicsEngineD3DBase/include/D3DErrors.h
@@ -81,10 +81,9 @@ do{ \
HRESULT _hr_ = Expr; \
if(FAILED(_hr_)) \
{ \
- Diligent::MsgStream ms; \
- Diligent::FormatMsg(ms, __VA_ARGS__); \
- ComErrorDesc ErrDesc( _hr_ ); \
- LOG_ERROR_AND_THROW( ms.str(), "\nHRESULT Desc: ", ErrDesc.Get());\
+ auto msg = Diligent::FormatString(__VA_ARGS__); \
+ ComErrorDesc ErrDesc( _hr_ ); \
+ LOG_ERROR_AND_THROW( msg, "\nHRESULT Desc: ", ErrDesc.Get());\
} \
}while(false)