Cleanup.
This commit is contained in:
parent
2b99e3e5cb
commit
6f16d0e68c
26
src/bgfx.cpp
26
src/bgfx.cpp
@ -1845,6 +1845,19 @@ namespace bgfx
|
||||
bx::memCopy(&m_init.platformData, &g_platformData, sizeof(PlatformData) );
|
||||
}
|
||||
|
||||
if (true
|
||||
&& !BX_ENABLED(BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_PS4)
|
||||
&& RendererType::Noop != m_init.type
|
||||
&& NULL == m_init.platformData.ndt
|
||||
&& NULL == m_init.platformData.nwh
|
||||
&& NULL == m_init.platformData.context
|
||||
&& NULL == m_init.platformData.backBuffer
|
||||
&& NULL == m_init.platformData.backBufferDS
|
||||
)
|
||||
{
|
||||
BX_TRACE("bgfx platform data like window handle or backbuffer is not set, creating headless device.");
|
||||
}
|
||||
|
||||
m_exit = false;
|
||||
m_flipped = true;
|
||||
m_frames = 0;
|
||||
@ -3438,19 +3451,6 @@ namespace bgfx
|
||||
s_callbackStub = BX_NEW(g_allocator, CallbackStub);
|
||||
}
|
||||
|
||||
if (true
|
||||
&& !BX_ENABLED(BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_PS4)
|
||||
&& RendererType::Noop != init.type
|
||||
&& NULL == init.platformData.ndt
|
||||
&& NULL == init.platformData.nwh
|
||||
&& NULL == init.platformData.context
|
||||
&& NULL == init.platformData.backBuffer
|
||||
&& NULL == init.platformData.backBufferDS
|
||||
)
|
||||
{
|
||||
BX_TRACE("bgfx platform data like window handle or backbuffer is not set, creating headless device.");
|
||||
}
|
||||
|
||||
bx::memSet(&g_caps, 0, sizeof(g_caps) );
|
||||
g_caps.limits.maxDrawCalls = BGFX_CONFIG_MAX_DRAW_CALLS;
|
||||
g_caps.limits.maxBlits = BGFX_CONFIG_MAX_BLIT_ITEMS;
|
||||
|
Loading…
Reference in New Issue
Block a user