diff --git a/examples/common/entry/entry_asmjs.cpp b/examples/common/entry/entry_asmjs.cpp new file mode 100644 index 000000000..7ff7babe2 --- /dev/null +++ b/examples/common/entry/entry_asmjs.cpp @@ -0,0 +1,40 @@ +/* + * Copyright 2011-2014 Branimir Karadzic. All rights reserved. + * License: http://www.opensource.org/licenses/BSD-2-Clause + */ + +#include "entry_p.h" + +#if BX_PLATFORM_EMSCRIPTEN + +#include + +namespace entry +{ + const Event* poll() + { + } + + void release(const Event* /*_event*/) + { + } + + void setWindowSize(uint32_t /*_width*/, uint32_t /*_height*/) + { + } + + void toggleWindowFrame() + { + } + + void setMouseLock(bool /*_lock*/) + { + } +} + +int main(int _argc, char** _argv) +{ + return entry::main(_argc, _argv); +} + +#endif // BX_PLATFORM_EMSCRIPTEN diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 0ee7d91e4..a63836b65 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -2685,6 +2685,7 @@ namespace bgfx bx::Semaphore m_renderSem; bx::Semaphore m_gameSem; + bx::Thread m_thread; #else void gameSemPost() { @@ -2703,7 +2704,6 @@ namespace bgfx } #endif // BGFX_CONFIG_MULTITHREADED - bx::Thread m_thread; Frame m_frame[2]; Frame* m_render; Frame* m_submit;