mirror of https://github.com/bkaradzic/bgfx
Cleanup.
This commit is contained in:
parent
516e287f24
commit
10b9d079bf
|
@ -110,7 +110,7 @@ namespace entry
|
|||
const char* argv[1] = { "android.so" };
|
||||
m_mte.m_argc = 1;
|
||||
m_mte.m_argv = const_cast<char**>(argv);
|
||||
|
||||
|
||||
while (0 == m_app->destroyRequested)
|
||||
{
|
||||
int32_t num;
|
||||
|
@ -152,8 +152,10 @@ namespace entry
|
|||
WindowHandle defaultWindow = { 0 };
|
||||
m_eventQueue.postSizeEvent(defaultWindow, width, height);
|
||||
|
||||
if (!m_thread.isRunning())
|
||||
if (!m_thread.isRunning() )
|
||||
{
|
||||
m_thread.init(MainThreadEntry::threadFunc, &m_mte);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
12
src/bgfx_p.h
12
src/bgfx_p.h
|
@ -2135,7 +2135,11 @@ namespace bgfx
|
|||
BX_WARN(0 != _width && 0 != _height, "Frame buffer resolution width or height cannot be 0 (width %d, height %d).", _width, _height);
|
||||
m_resolution.m_width = bx::uint32_max(1, _width);
|
||||
m_resolution.m_height = bx::uint32_max(1, _height);
|
||||
m_resolution.m_flags = _flags;
|
||||
m_resolution.m_flags = 0
|
||||
| _flags
|
||||
| (g_platformDataChangedSinceReset ? BGFX_RESET_INTERNAL_FORCE : 0)
|
||||
;
|
||||
g_platformDataChangedSinceReset = false;
|
||||
|
||||
m_flipAfterRender = !!(_flags & BGFX_RESET_FLIP_AFTER_RENDER);
|
||||
|
||||
|
@ -2155,12 +2159,6 @@ namespace bgfx
|
|||
m_resolution.m_flags |= BGFX_RESET_INTERNAL_FORCE;
|
||||
}
|
||||
}
|
||||
|
||||
if (g_platformDataChangedSinceReset)
|
||||
{
|
||||
m_resolution.m_flags |= BGFX_RESET_INTERNAL_FORCE;
|
||||
g_platformDataChangedSinceReset = false;
|
||||
}
|
||||
}
|
||||
|
||||
BGFX_API_FUNC(void setDebug(uint32_t _debug) )
|
||||
|
|
Loading…
Reference in New Issue