mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Entry: Resize window before calling init.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user