From f9f0d8b649290725cf3b9dbc83d030ae4e9a3361 Mon Sep 17 00:00:00 2001 From: Light Date: Mon, 21 Jun 2021 17:03:02 +0430 Subject: [PATCH] DXC Fix - Fixed the DXC macro --- Engine/src/Engine/Debug/Exceptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/src/Engine/Debug/Exceptions.h b/Engine/src/Engine/Debug/Exceptions.h index 6ae98ac..4612b24 100644 --- a/Engine/src/Engine/Debug/Exceptions.h +++ b/Engine/src/Engine/Debug/Exceptions.h @@ -1,6 +1,6 @@ #pragma once -#define DXC(x) hr = x; if(FAILED(x)) throw dxException(hr, __FILE__, __LINE__) +#define DXC(x) if(FAILED(hr = x)) throw dxException(hr, __FILE__, __LINE__) namespace Light {