Skip to content

Commit

Permalink
[Impeller] Enable GLES MSAA only if the multisampled_render_to_textur…
Browse files Browse the repository at this point in the history
…e2 extension is available (flutter#47364)

The GLES MSAA implementation may need to call FramebufferTexture2DMultisampleEXT for the stencil attachment.

See flutter/flutter#137252
  • Loading branch information
jason-simmons authored Oct 27, 2023
1 parent e18ba82 commit 674de5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impeller/renderer/backend/gles/capabilities_gles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 674de5b

Please sign in to comment.