diff --git a/examples/09-hdr/hdr.cpp b/examples/09-hdr/hdr.cpp index 87bfde87..77d4e6e3 100644 --- a/examples/09-hdr/hdr.cpp +++ b/examples/09-hdr/hdr.cpp @@ -143,10 +143,10 @@ class HDR : public entry::AppI { void init(int /*_argc*/, char** /*_argv*/) BX_OVERRIDE { - m_width = 1280; + m_width = 1280; m_height = 720; - m_debug = BGFX_DEBUG_TEXT; - m_reset = BGFX_RESET_VSYNC; + m_debug = BGFX_DEBUG_TEXT; + m_reset = BGFX_RESET_VSYNC; bgfx::init(); bgfx::reset(m_width, m_height, m_reset); diff --git a/examples/common/entry/entry.cpp b/examples/common/entry/entry.cpp index e4d269f4..08ac26e4 100644 --- a/examples/common/entry/entry.cpp +++ b/examples/common/entry/entry.cpp @@ -319,6 +319,7 @@ BX_PRAGMA_DIAGNOSTIC_POP(); int runApp(AppI* _app, int _argc, char** _argv) { _app->init(_argc, _argv); + bgfx::frame(); WindowHandle defaultWindow = { 0 }; setWindowSize(defaultWindow, ENTRY_DEFAULT_WIDTH, ENTRY_DEFAULT_HEIGHT); diff --git a/examples/common/entry/entry_x11.cpp b/examples/common/entry/entry_x11.cpp index 16b7af4f..9dd0919c 100644 --- a/examples/common/entry/entry_x11.cpp +++ b/examples/common/entry/entry_x11.cpp @@ -316,7 +316,7 @@ namespace entry m_window[0] = XCreateWindow(m_display , m_root , 0, 0 - , ENTRY_DEFAULT_WIDTH, ENTRY_DEFAULT_HEIGHT, 0 + , 1, 1, 0 , m_depth , InputOutput , m_visual @@ -362,7 +362,7 @@ namespace entry thread.init(mte.threadFunc, &mte); WindowHandle defaultWindow = { 0 }; - m_eventQueue.postSizeEvent(defaultWindow, ENTRY_DEFAULT_WIDTH, ENTRY_DEFAULT_HEIGHT); + m_eventQueue.postSizeEvent(defaultWindow, 1, 1); s_joystick.init();