Changed thread init function.

This commit is contained in:
bkaradzic 2012-12-04 20:07:14 -08:00
parent aaa5a73917
commit 6c6efd274e
2 changed files with 2 additions and 8 deletions

View File

@ -754,7 +754,7 @@ namespace bgfx
#if BGFX_CONFIG_MULTITHREADED
if (_createRenderThread)
{
m_thread.init();
m_thread.init(renderThread, this);
}
#else
BX_UNUSED(_createRenderThread);

View File

@ -1412,8 +1412,7 @@ namespace bgfx
struct Context
{
Context()
: m_thread(renderThread, thisSuppressC4355() )
, m_render(&m_frame[0])
: m_render(&m_frame[0])
, m_submit(&m_frame[1])
, m_dynamicIndexBufferHandle(BGFX_CONFIG_MAX_DYNAMIC_INDEX_BUFFERS)
, m_dynamicVertexBufferHandle(BGFX_CONFIG_MAX_DYNAMIC_VERTEX_BUFFERS)
@ -1437,11 +1436,6 @@ namespace bgfx
{
}
Context* thisSuppressC4355()
{
return this;
}
static int32_t renderThread(void* _userData)
{
Context* ctx = (Context*)_userData;