Entry: Resize window before calling init.
This commit is contained in:
parent
e33efb8b42
commit
4f3ce6abcb
@ -530,11 +530,11 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
|
||||
int runApp(AppI* _app, int _argc, const char* const* _argv)
|
||||
{
|
||||
setWindowSize(kDefaultWindowHandle, s_width, s_height);
|
||||
|
||||
_app->init(_argc, _argv, s_width, s_height);
|
||||
bgfx::frame();
|
||||
|
||||
setWindowSize(kDefaultWindowHandle, s_width, s_height);
|
||||
|
||||
#if BX_PLATFORM_EMSCRIPTEN
|
||||
s_app = _app;
|
||||
emscripten_set_main_loop(&updateApp, -1, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user