diff --git a/engine/src/flutter/impeller/aiks/picture.cc b/engine/src/flutter/impeller/aiks/picture.cc index 7b64686a172..29737411c07 100644 --- a/engine/src/flutter/impeller/aiks/picture.cc +++ b/engine/src/flutter/impeller/aiks/picture.cc @@ -52,7 +52,13 @@ std::shared_ptr Picture::RenderToTexture( // This texture isn't host visible, but we might want to add host visible // features to Image someday. - auto target = RenderTarget::CreateOffscreen(*context.GetContext(), size); + auto impeller_context = context.GetContext(); + RenderTarget target; + if (impeller_context->SupportsOffscreenMSAA()) { + target = RenderTarget::CreateOffscreenMSAA(*impeller_context, size); + } else { + target = RenderTarget::CreateOffscreen(*impeller_context, size); + } if (!target.IsValid()) { VALIDATION_LOG << "Could not create valid RenderTarget."; return nullptr;