Fix rods error check

This commit is contained in:
Rukai committed 2020-07-17 19:31:45 +10:00
1 parent 3cdb9f72aa
commit de0ac2ccb7
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());
}