mrk-its / bevy_webgl2

WebGL2 renderer plugin for Bevy game engine
MIT License
172 stars 46 forks source link

nothing renders on macOS #8

Closed mockersf closed 3 years ago

mockersf commented 3 years ago

when running cargo make example sprite --profile release, nothing renders

Firefox, Chrome and Safari on macOS

panicked at 'called `Option::unwrap()` on a `None` value', src/renderer/webgl2_render_resource_context.rs:551:55

Stack:

init/imports.wbg.__wbg_new_59cb74e423758ede@http://localhost:8000/target/wasm.js:340:19
@http://localhost:8000/target/wasm_bg.wasm:wasm-function[1761]:0x1ad125
@http://localhost:8000/target/wasm_bg.wasm:wasm-function[17779]:0x3af48b
@http://localhost:8000/target/wasm_bg.wasm:wasm-function[4786]:0x2a114e

reverting this commit makes it work again