From e866800c0c7e4b32d3382f96a144be9061f6b68c Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 27 Oct 2023 07:44:58 -0700 Subject: [PATCH] [Impeller] Enable GLES MSAA only if the multisampled_render_to_texture2 extension is available (flutter/engine#47364) The GLES MSAA implementation may need to call FramebufferTexture2DMultisampleEXT for the stencil attachment. See https://github.com/flutter/flutter/issues/137252 --- .../flutter/impeller/renderer/backend/gles/capabilities_gles.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/impeller/renderer/backend/gles/capabilities_gles.cc b/engine/src/flutter/impeller/renderer/backend/gles/capabilities_gles.cc index 54ac1e70d3..84057b441c 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/capabilities_gles.cc +++ b/engine/src/flutter/impeller/renderer/backend/gles/capabilities_gles.cc @@ -108,7 +108,7 @@ CapabilitiesGLES::CapabilitiesGLES(const ProcTableGLES& gl) { } if (gl.GetDescription()->HasExtension( - "GL_EXT_multisampled_render_to_texture") && + "GL_EXT_multisampled_render_to_texture2") && // The current implementation of MSAA support in Impeller GLES requires // the use of glBlitFramebuffer, which is not available on all GLES // implementations. We can't use MSAA on these platforms yet.