mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Minor wgpu-web releated stuff (#1977)
* egui_demo_app: remove wgpu and pollster as direct dependencies * eframe: use same web-sys version as wgpu crate * Make note that web_sys_unstable_apis is required by the wgpu crate * Rename the glow web painter in eframe * Remove trait DummyWebGLConstructor from web_glow_painter.rs * cargo fmt * Fix check.sh
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use super::{glow_wrapping::WrappedGlowPainter, *};
|
||||
use super::{WebPainter, *};
|
||||
|
||||
use crate::epi;
|
||||
|
||||
@@ -162,7 +162,7 @@ fn test_parse_query() {
|
||||
pub struct AppRunner {
|
||||
pub(crate) frame: epi::Frame,
|
||||
egui_ctx: egui::Context,
|
||||
painter: WrappedGlowPainter,
|
||||
painter: WebPainter,
|
||||
pub(crate) input: WebInput,
|
||||
app: Box<dyn epi::App>,
|
||||
pub(crate) needs_repaint: std::sync::Arc<NeedRepaint>,
|
||||
@@ -187,8 +187,8 @@ impl AppRunner {
|
||||
web_options: crate::WebOptions,
|
||||
app_creator: epi::AppCreator,
|
||||
) -> Result<Self, JsValue> {
|
||||
let painter = WrappedGlowPainter::new(canvas_id, web_options.webgl_context_option)
|
||||
.map_err(JsValue::from)?; // fail early
|
||||
let painter =
|
||||
WebPainter::new(canvas_id, web_options.webgl_context_option).map_err(JsValue::from)?; // fail early
|
||||
|
||||
let system_theme = if web_options.follow_system_theme {
|
||||
super::system_theme()
|
||||
|
||||
Reference in New Issue
Block a user