mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix rods error check
This commit is contained in:
@@ -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