Closed terrybrash closed 1 year ago
This looks like there's a -sUSE_WEBGL2=1
missing in the Emscripten linker options.
I guess this must be added here somehow:
https://github.com/floooh/sokol-rust/blob/0c9cd9338ad268fc0aa21656032db085d048cde6/build.rs#L256
(e.g. here's the equivalent in one of my C example projects: https://github.com/floooh/pacman.c/blob/ecc4d2fadf16400320c97917ccdb5c833193f151/CMakeLists.txt#L47)
TBH I wasn't actually aware that the build.rs file supports building for Emscripten :)
If you can figure out the solution and provide a PR that would be nice.
Running
cargo build --target wasm32-unknown-emscripten --example texcube
So it looks like gles2 was removed and gles3 is the backend you're supposed to use when targeting WebGL2.
After changing this line to Gles3, I get new errors: