DX11: Fixed refcount checks on release.

This commit is contained in:
bkaradzic
2013-10-18 22:34:23 -07:00
parent 7654826ffa
commit dcd0452d82
5 changed files with 50 additions and 30 deletions

View File

@@ -187,6 +187,7 @@ namespace bgfx
static CallbackStub* s_callbackStub = NULL;
static AllocatorStub* s_allocatorStub = NULL;
static bool s_graphicsDebuggerPresent = false;
CallbackI* g_callback = NULL;
bx::ReallocatorI* g_allocator = NULL;
@@ -201,6 +202,17 @@ namespace bgfx
return NULL != s_ctx;
}
void setGraphicsDebuggerPresent(bool _present)
{
BX_TRACE("Graphics debugger is %spresent.", _present ? "" : "not ");
s_graphicsDebuggerPresent = _present;
}
bool isGraphicsDebuggerPresent()
{
return s_graphicsDebuggerPresent;
}
void fatal(Fatal::Enum _code, const char* _format, ...)
{
char temp[8192];