mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
egui_web glow painter: return errors instead of panic
This commit is contained in:
@@ -35,7 +35,7 @@ impl WebGlPainter {
|
||||
|
||||
let gl = canvas
|
||||
.get_context("webgl")?
|
||||
.ok_or_else(|| JsValue::from("Failed to get WebGl context"))?
|
||||
.ok_or_else(|| JsValue::from("Failed to get WebGL context"))?
|
||||
.dyn_into::<WebGlRenderingContext>()?;
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user