From b75f49d3fb9030b883cbd3702766b1b63e92d523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 23 Mar 2018 17:21:59 -0700 Subject: [PATCH] Cleanup. --- src/bgfx.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index f599e56c7..a685f7674 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -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(_encoder); + if (encoder != &m_encoder[0]) { - EncoderImpl* encoder = reinterpret_cast(_encoder); encoder->end(true); - m_encoderEndSem.post(); } #else