summaryrefslogtreecommitdiffstats
path: root/Primitives/src
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-07-29 19:32:03 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-07-29 19:32:03 +0000
commit1ce40e101534df438a98a44fb2e3c9db59d47208 (patch)
tree65e695d0f5c7d0f8db8a759e2c096f1f8e49046f /Primitives/src
parentFixed social media icons (diff)
downloadDiligentCore-1ce40e101534df438a98a44fb2e3c9db59d47208.tar.gz
DiligentCore-1ce40e101534df438a98a44fb2e3c9db59d47208.zip
Fixed initialization of DebugMessageCallback to work in Release mode
Diffstat (limited to 'Primitives/src')
-rw-r--r--Primitives/src/DebugOutput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Primitives/src/DebugOutput.cpp b/Primitives/src/DebugOutput.cpp
index bbacac4a..8ae84c02 100644
--- a/Primitives/src/DebugOutput.cpp
+++ b/Primitives/src/DebugOutput.cpp
@@ -26,10 +26,10 @@
namespace Diligent
{
-DebugMessageCallbackType DebugMessageCallback = nullptr;
-
void SetDebugMessageCallback(DebugMessageCallbackType DbgMessageCallback)
{
+ // DebugMessageCallback variable is defined in every platform-specific implementation file
+ // and initialized with the platform-specific callback
DebugMessageCallback = DbgMessageCallback;
}