diff --git a/bindgen/gen_jai.py b/bindgen/gen_jai.py index fe6432808..376d89aff 100644 --- a/bindgen/gen_jai.py +++ b/bindgen/gen_jai.py @@ -383,6 +383,9 @@ def gen_c_imports(inp, c_prefix, prefix): l(f' {linux_gl_libs}') l(f' #if DEBUG {{ {clib_import} :: #library,no_dll "{clib_prefix}_linux_x64_gl_debug"; }}') l(f' else {{ {clib_import} :: #library,no_dll "{clib_prefix}_linux_x64_gl_release"; }}') + l( '} else #if OS == .WASM {') + l(f' #if DEBUG {{ {clib_import} :: #library,no_dll "{clib_prefix}_wasm_gl_debug"; }}') + l(f' else {{ {clib_import} :: #library,no_dll "{clib_prefix}_wasm_gl_release"; }}') l( '} else {') l( ' log_error("This OS is currently not supported");') l( '}')