Skip to content

Commit

Permalink
Report invalid pipelines in render bundles as errors, not panics.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy committed May 16, 2022
1 parent c608ee0 commit 0909a65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wgpu-core/src/command/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ impl RenderBundleEncoder {
.trackers
.render_pipes
.use_extend(&*pipeline_guard, pipeline_id, (), ())
.unwrap();
.map_err(|_| RenderCommandError::InvalidPipeline(pipeline_id))
.map_pass_err(scope)?;

self.context
.check_compatible(&pipeline.pass_context)
Expand Down

0 comments on commit 0909a65

Please sign in to comment.