mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Added check to prevent multiple calls to bgfx init.
This commit is contained in:
parent
32ed7f5bf6
commit
99b2441378
1 changed files with 1 additions and 0 deletions
|
@ -1784,6 +1784,7 @@ again:
|
||||||
|
|
||||||
void init(RendererType::Enum _type, CallbackI* _callback, bx::ReallocatorI* _allocator)
|
void init(RendererType::Enum _type, CallbackI* _callback, bx::ReallocatorI* _allocator)
|
||||||
{
|
{
|
||||||
|
BX_CHECK(NULL == s_ctx, "bgfx is already initialized.");
|
||||||
BX_TRACE("Init...");
|
BX_TRACE("Init...");
|
||||||
|
|
||||||
memset(&g_caps, 0, sizeof(g_caps) );
|
memset(&g_caps, 0, sizeof(g_caps) );
|
||||||
|
|
Loading…
Reference in a new issue