mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 14:23:02 +01:00
DX11: Fixed refcount checks on release.
This commit is contained in:
12
src/bgfx.cpp
12
src/bgfx.cpp
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user