Update examples to build on Emscripten Wasm. Add separate wasm and wasm2js targets. (#2145)

This commit is contained in:
juj
2020-05-17 05:45:55 +03:00
committed by GitHub
parent 0197e2c1ca
commit 098e6194d9
8 changed files with 48 additions and 25 deletions

View File

@@ -70,7 +70,7 @@ namespace bgfx { namespace gl
if (m_primary != NULL)
return;
const char* canvas = (const char*) g_platformData.nwh; // if 0, Module.canvas is used
const char* canvas = (const char*) g_platformData.nwh;
m_primary = createSwapChain((void*)canvas);