Address nits in #897

This commit is contained in:
Mikko Lehtonen 2020-08-27 22:11:42 +03:00
parent dbd6081a8e
commit 5fab78e175
2 changed files with 3 additions and 3 deletions

View File

@ -722,7 +722,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
bundle_encoder
.context
.check_compatible(&pipeline.pass_context)
.map_err(|e| RenderCommandError::IncompatiblePipeline(e))?;
.map_err(RenderCommandError::IncompatiblePipeline)?;
//TODO: check read-only depth

View File

@ -1018,7 +1018,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
context
.check_compatible(&pipeline.pass_context)
.map_err(|e| RenderCommandError::IncompatiblePipeline(e))?;
.map_err(RenderCommandError::IncompatiblePipeline)?;
if pipeline.flags.contains(PipelineFlags::WRITES_DEPTH_STENCIL)
&& is_ds_read_only
@ -1515,7 +1515,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
context
.check_compatible(&bundle.context)
.map_err(|e| RenderPassError::IncompatibleRenderBundle(e))?;
.map_err(RenderPassError::IncompatibleRenderBundle)?;
unsafe {
bundle.execute(