This commit is contained in:
Branimir Karadžić 2016-11-22 17:55:45 -08:00
parent 6430099ea9
commit 69759a0116
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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()
{
}