Skip to content

Commit

Permalink
fix web build
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Sep 16, 2023
1 parent 62dfa52 commit abc47cd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions wgpu/src/backend/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,10 @@ fn map_color(color: wgt::Color) -> web_sys::GpuColorDict {
web_sys::GpuColorDict::new(color.a, color.b, color.g, color.r)
}

fn map_store_op(store: bool) -> web_sys::GpuStoreOp {
if store {
web_sys::GpuStoreOp::Store
} else {
web_sys::GpuStoreOp::Discard
fn map_store_op(store: crate::StoreOp) -> web_sys::GpuStoreOp {
match store {
crate::StoreOp::Store => web_sys::GpuStoreOp::Store,
crate::StoreOp::Discard => web_sys::GpuStoreOp::Discard,
}
}

Expand Down

0 comments on commit abc47cd

Please sign in to comment.