mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
14
src/bgfx.cpp
14
src/bgfx.cpp
@@ -528,10 +528,10 @@ namespace bgfx
|
||||
s_ctx.frame();
|
||||
}
|
||||
|
||||
void renderFrame()
|
||||
bool renderFrame()
|
||||
{
|
||||
BGFX_RENDER_THREAD();
|
||||
s_ctx.renderFrame();
|
||||
return s_ctx.renderFrame();
|
||||
}
|
||||
|
||||
static const uint32_t s_attribTypeSize[AttribType::Count] =
|
||||
@@ -730,6 +730,16 @@ namespace bgfx
|
||||
m_render->destroy();
|
||||
}
|
||||
|
||||
#if BX_PLATFORM_WINDOWS
|
||||
DWORD WINAPI renderThread(LPVOID)
|
||||
#else
|
||||
void* renderThread(void*)
|
||||
#endif // BX_PLATFORM_WINDOWS
|
||||
{
|
||||
while (!renderFrame() );
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
const Memory* alloc(uint32_t _size)
|
||||
{
|
||||
Memory* mem = (Memory*)g_realloc(NULL, sizeof(Memory) + _size);
|
||||
|
||||
Reference in New Issue
Block a user