-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Description
For Impeller on the OpenGLES backend, we're going to use https://registry.khronos.org/OpenGL/extensions/EXT/EXT_multisampled_render_to_texture.txt . While this extension automagically resolves the 4x multisample texture to a 1x resolve texture, I don't believe it similarly makes the stencil attachment availble. Instead, it likely discards the stencil and depth buffer.
This should be visible by running an application with a backdrop filter - we depend on storing the stencil buffer for correct rendering.
In order to "store" the stencil buffer, we may need to manually blit or draw the stencil into another texture. I don't have a good handle on whether or not this is easily possible. If not, then we'll need to implement #137448 which removes the need to store the stencil altogether (better long term but will be a heavy lift).