806: Fix rods error check - fixes water example r=kvark a=rukai

**Description**
Fixes water example panic

**Testing**
Tested on every wgpu-rs example


Co-authored-by: Rukai <rubickent@gmail.com>
This commit is contained in:
bors[bot]andRukai authored and GitHub committed 2020-07-17 13:39:02 +00:00
commit 0c7f189134
1 file changed
+4 -4
+4 -4
View File
@@ -1134,10 +1134,10 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
if !context.compatible(&pipeline.pass_context) {
return Err(RenderCommandError::IncompatiblePipeline.into());
}
if is_ds_read_only
&& pipeline
.flags
.contains(PipelineFlags::DEPTH_STENCIL_READ_ONLY)
if pipeline
.flags
.contains(PipelineFlags::DEPTH_STENCIL_READ_ONLY)
&& !is_ds_read_only
{
return Err(RenderCommandError::IncompatibleReadOnlyDepthStencil.into());
}