.
diff --git a/sparse_strips/vello_hybrid/src/render/webgl.rs b/sparse_strips/vello_hybrid/src/render/webgl.rs index 5fd8532..6be6676 100644 --- a/sparse_strips/vello_hybrid/src/render/webgl.rs +++ b/sparse_strips/vello_hybrid/src/render/webgl.rs
@@ -133,22 +133,15 @@ .dyn_into::<WebGl2RenderingContext>() .expect("Context to be a WebGL2 context"); - #[cfg(debug_assertions)] - { - // If a WebGL context already exists on this canvas, it will be returned instead of - // creating a new one with the correct context_options set. - // See this comment for why we still care about non-antialiased context: - // https://github.com/linebender/vello/pull/1546/changes#r3008692535 - let context_attributes = gl.get_context_attributes().unwrap(); - let antialias = js_sys::Reflect::get(&context_attributes, &"antialias".into()) - .unwrap() - .as_bool() - .unwrap(); - debug_assert!( - !antialias, - "WebGL context must be created with `antialias: false` for vello_hybrid to work correctly." - ); - } + let context_attributes = gl.get_context_attributes().unwrap(); + let antialias = js_sys::Reflect::get(&context_attributes, &"antialias".into()) + .unwrap() + .as_bool() + .unwrap(); + debug_assert!( + !antialias, + "WebGL context must be created with `antialias: false` for vello_hybrid to work correctly." + ); let mut settings = settings; let max_texture_dimension_2d = get_max_texture_dimension_2d(&gl);