Update canvas context
gpupresent Context has been deprecated in favour of webgpu
@@ -949,7 +949,7 @@ impl crate::Context for Context {
.expect("expected to find single canvas")
.into();
let canvas_element: web_sys::HtmlCanvasElement = canvas_node.into();
- let context: wasm_bindgen::JsValue = match canvas_element.get_context("gpupresent") {
+ let context: wasm_bindgen::JsValue = match canvas_element.get_context("webgpu") {
Ok(Some(ctx)) => ctx.into(),
_ => panic!("expected to get context from canvas"),
};
