Branimir Karadžić 10 years ago
parent
commit
0c78fe8073
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bgfx.cpp

+ 2 - 2
src/bgfx.cpp

@@ -1049,10 +1049,10 @@ namespace bgfx
 		}
 		}
 
 
 		m_render->destroy();
 		m_render->destroy();
-#else
-		s_ctx = NULL;
 #endif // BGFX_CONFIG_MULTITHREADED
 #endif // BGFX_CONFIG_MULTITHREADED
 
 
+		s_ctx = NULL;
+
 		m_submit->destroy();
 		m_submit->destroy();
 
 
 		if (BX_ENABLED(BGFX_CONFIG_DEBUG) )
 		if (BX_ENABLED(BGFX_CONFIG_DEBUG) )