mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 00:11:11 +01:00
Fix rods error check
This commit is contained in:
1 parent
3cdb9f72aa
commit
de0ac2ccb7
1 file changed
+4
-4
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user