mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Changed thread init function.
This commit is contained in:
@@ -754,7 +754,7 @@ namespace bgfx
|
||||
#if BGFX_CONFIG_MULTITHREADED
|
||||
if (_createRenderThread)
|
||||
{
|
||||
m_thread.init();
|
||||
m_thread.init(renderThread, this);
|
||||
}
|
||||
#else
|
||||
BX_UNUSED(_createRenderThread);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user