[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
This commit is contained in:
Jason Simmons
2023-10-27 07:44:58 -07:00
committed by GitHub
parent e40bd4d3dd
commit e866800c0c

View File

@@ -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.