mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Changed thread init function.
This commit is contained in:
parent
aaa5a73917
commit
6c6efd274e
2 changed files with 2 additions and 8 deletions
|
@ -754,7 +754,7 @@ namespace bgfx
|
||||||
#if BGFX_CONFIG_MULTITHREADED
|
#if BGFX_CONFIG_MULTITHREADED
|
||||||
if (_createRenderThread)
|
if (_createRenderThread)
|
||||||
{
|
{
|
||||||
m_thread.init();
|
m_thread.init(renderThread, this);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
BX_UNUSED(_createRenderThread);
|
BX_UNUSED(_createRenderThread);
|
||||||
|
|
|
@ -1412,8 +1412,7 @@ namespace bgfx
|
||||||
struct Context
|
struct Context
|
||||||
{
|
{
|
||||||
Context()
|
Context()
|
||||||
: m_thread(renderThread, thisSuppressC4355() )
|
: m_render(&m_frame[0])
|
||||||
, m_render(&m_frame[0])
|
|
||||||
, m_submit(&m_frame[1])
|
, m_submit(&m_frame[1])
|
||||||
, m_dynamicIndexBufferHandle(BGFX_CONFIG_MAX_DYNAMIC_INDEX_BUFFERS)
|
, m_dynamicIndexBufferHandle(BGFX_CONFIG_MAX_DYNAMIC_INDEX_BUFFERS)
|
||||||
, m_dynamicVertexBufferHandle(BGFX_CONFIG_MAX_DYNAMIC_VERTEX_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)
|
static int32_t renderThread(void* _userData)
|
||||||
{
|
{
|
||||||
Context* ctx = (Context*)_userData;
|
Context* ctx = (Context*)_userData;
|
||||||
|
|
Loading…
Reference in a new issue