Browse Source

Fix wasm build.

Бранимир Караџић 2 years ago
parent
commit
5b8a8ba3da
1 changed files with 5 additions and 0 deletions
  1. 5 0
      scripts/bgfx.lua

+ 5 - 0
scripts/bgfx.lua

@@ -153,6 +153,11 @@ function bgfxProjectBase(_kind, _defines)
 			path.join(BGFX_DIR, "3rdparty/khronos"),
 			path.join(BGFX_DIR, "3rdparty/khronos"),
 		}
 		}
 
 
+	configuration { "wasm*" }
+		linkoptions {
+			"-sGL_ENABLE_GET_PROC_ADDRESS",
+		}
+
 	configuration {}
 	configuration {}
 
 
 	includedirs {
 	includedirs {