Skip to content

Commit

Permalink
fix web build
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Oct 26, 2023
1 parent ed471a4 commit 5d703ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ opt-level = 2
[workspace.dependencies]
thiserror = "1.0.37"
wgpu = "0.18.0"
# Use this to build wgpu with WebGL support on the Web *instead* of using WebGPU.
#wgpu = { version = "0.18.0", features = ["webgl"] }
3 changes: 1 addition & 2 deletions crates/eframe/src/web/web_painter_wgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ impl WebPainterWgpu {

let instance = wgpu::Instance::new(wgpu::InstanceDescriptor {
backends: options.wgpu_options.supported_backends,
dx12_shader_compiler: Default::default(),
gles_minor_version: wgpu::Gles3MinorVersion::Automatic,
..Default::default()
});

let canvas = super::canvas_element_or_die(canvas_id);
Expand Down

0 comments on commit 5d703ae

Please sign in to comment.