mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
Merge #806
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:
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