This commit is contained in:
Branimir Karadžić 2018-03-23 17:21:59 -07:00
parent 8e6450de15
commit b75f49d3fb

View File

@ -1714,11 +1714,10 @@ namespace bgfx
void Context::end(Encoder* _encoder)
{
#if BGFX_CONFIG_MULTITHREADED
if (BGFX_API_THREAD_MAGIC != s_threadIndex)
EncoderImpl* encoder = reinterpret_cast<EncoderImpl*>(_encoder);
if (encoder != &m_encoder[0])
{
EncoderImpl* encoder = reinterpret_cast<EncoderImpl*>(_encoder);
encoder->end(true);
m_encoderEndSem.post();
}
#else