902: Address nits in #897 r=cwfitzgerald a=scoopr



Co-authored-by: Mikko Lehtonen <scoopr@iki.fi>
This commit is contained in:
bors[bot]
2020-08-27 20:10:11 +00:00
committed by GitHub
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(