Skip to content

Commit

Permalink
xrCore: fix wrong defines placement
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed May 25, 2018
1 parent 243b268 commit 68389c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xrCore/xrDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ void xrDebug::Fail(bool& ignoreAlways, const ErrorLocation& loc, const char* exp
if (OnDialog)
OnDialog(true);
FlushLog();
if (Core.PluginMode)
#if defined(WINDOWS)
if (Core.PluginMode)
MessageBox(NULL, assertionInfo, "X-Ray error", MB_OK | MB_ICONERROR | MB_SYSTEMMODAL);
else
{
Expand Down Expand Up @@ -420,9 +420,10 @@ void xrDebug::Fail(bool& ignoreAlways, const ErrorLocation& loc, const char* exp
DEBUG_BREAK;
#endif
}
#endif
if (OnDialog)
OnDialog(false);
#endif

lock.Leave();
}

Expand Down

0 comments on commit 68389c6

Please sign in to comment.