[impeller] use greater equal rather than greater depth compare. (flutter/engine#56310)
Marking ready for review for golden testing Fixes https://github.com/flutter/flutter/issues/153504 Fixes some other ones too? It seems like metal and vulkan are already behaving like they are using greater equal depth compare. GL behaves correctly like greater compare, but that leads to rendering bugs. Just switch it to greater equal
This commit is contained in:
@@ -26,7 +26,7 @@ ContentContextOptions OptionsFromPass(const RenderPass& pass) {
|
||||
FML_DCHECK(pass.HasDepthAttachment() == pass.HasStencilAttachment());
|
||||
|
||||
opts.has_depth_stencil_attachments = has_depth_stencil_attachments;
|
||||
opts.depth_compare = CompareFunction::kGreater;
|
||||
opts.depth_compare = CompareFunction::kGreaterEqual;
|
||||
opts.stencil_mode = ContentContextOptions::StencilMode::kIgnore;
|
||||
return opts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user