Fixed crash when debug output is not initialized.
This commit is contained in:
parent
fac71e9e35
commit
aaea5f93ec
12
src/bgfx.cpp
12
src/bgfx.cpp
@ -339,11 +339,13 @@ namespace bgfx
|
||||
|
||||
void trace(const char* _filePath, uint16_t _line, const char* _format, ...)
|
||||
{
|
||||
va_list argList;
|
||||
va_start(argList, _format);
|
||||
g_callback->traceVargs(_filePath, _line, _format, argList);
|
||||
va_end(argList);
|
||||
|
||||
if (NULL != g_callback)
|
||||
{
|
||||
va_list argList;
|
||||
va_start(argList, _format);
|
||||
g_callback->traceVargs(_filePath, _line, _format, argList);
|
||||
va_end(argList);
|
||||
}
|
||||
}
|
||||
|
||||
#include "charset.h"
|
||||
|
Loading…
Reference in New Issue
Block a user