Entry: Resize window before calling init.

This commit is contained in:
Бранимир Караџић 2023-01-13 07:08:51 -08:00
parent e33efb8b42
commit 4f3ce6abcb

View File

@ -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);