Cleanup.
This commit is contained in:
parent
6430099ea9
commit
69759a0116
@ -1389,7 +1389,7 @@ namespace bgfx
|
||||
#if BGFX_CONFIG_MULTITHREADED
|
||||
// Render thread shutdown sequence.
|
||||
renderSemWait(); // Wait for previous frame.
|
||||
gameSemPost(); // OK to set context to NULL.
|
||||
apiSemPost(); // OK to set context to NULL.
|
||||
// s_ctx is NULL here.
|
||||
renderSemWait(); // In RenderFrame::Exiting state.
|
||||
|
||||
@ -1519,7 +1519,7 @@ namespace bgfx
|
||||
swap();
|
||||
|
||||
// release render thread
|
||||
gameSemPost();
|
||||
apiSemPost();
|
||||
}
|
||||
|
||||
void Context::swap()
|
||||
|
@ -4013,7 +4013,7 @@ namespace bgfx
|
||||
void rendererExecCommands(CommandBuffer& _cmdbuf);
|
||||
|
||||
#if BGFX_CONFIG_MULTITHREADED
|
||||
void gameSemPost()
|
||||
void apiSemPost()
|
||||
{
|
||||
if (!m_singleThreaded)
|
||||
{
|
||||
@ -4066,7 +4066,7 @@ namespace bgfx
|
||||
bx::Semaphore m_apiSem;
|
||||
bx::Thread m_thread;
|
||||
#else
|
||||
void gameSemPost()
|
||||
void apiSemPost()
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user