Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update content_context.cc
  • Loading branch information
Jonah Williams authored Feb 29, 2024
commit 72806f3a7db4c4b4389dd78af049893a1135db7a
5 changes: 3 additions & 2 deletions impeller/entity/contents/content_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,9 @@ fml::StatusOr<RenderTarget> ContentContext::MakeSubpass(
const std::shared_ptr<Context>& context = GetContext();
RenderTarget subpass_target;

std::optional<RenderTarget::AttachmentConfig> depth_stencil_config =
RenderTarget::kDefaultStencilAttachmentConfig;
std::optional<RenderTarget::AttachmentConfig> depth_stencil_config =
depth_stencil_enabled ? RenderTarget::kDefaultStencilAttachmentConfig
: std::optional<RenderTarget::AttachmentConfig>();

if (context->GetCapabilities()->SupportsOffscreenMSAA() && msaa_enabled) {
subpass_target = GetRenderTargetCache()->CreateOffscreenMSAA(
Expand Down