Fixed crash when debug output is not initialized.

This commit is contained in:
Branimir Karadžić 2015-12-08 18:33:56 -08:00
parent fac71e9e35
commit aaea5f93ec

View File

@ -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"