1
0
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:
Emil Ernerfeldt
2022-01-31 19:15:48 +01:00
parent ef81a52951
commit 871a200ecf
3 changed files with 15 additions and 20 deletions

View File

@@ -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>()?;
// --------------------------------------------------------------------