You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 680d933
Browse filesBrowse the repository at this point in the historyBrowse files
[Linux] Make the framebuffer depth/stencil buffer optional
fl_framebuffer_new() always attached a depth/stencil renderbuffer. That
is needed when Impeller renders into a framebuffer, but the framebuffers
this makes are now only used to present frames that have already been
rendered - the compositor copies into them with
glBlitFramebuffer(GL_COLOR_BUFFER_BIT) or by drawing a textured quad,
and never enables the depth or stencil test.
Add a flag so callers say whether they need one. The framebuffers the
engine renders into are made by fl_framebuffer_new_multisample() and
still always have one.
GL_DEPTH24_STENCIL8 is four bytes per pixel, the same as the colour
texture, so not attaching one halves the memory these framebuffers need.
They are reallocated on every resize step, so this matters most when
resizing or maximizing a window on a large display, where running out of
video memory makes eglMakeCurrent fail.
See flutter#191775
0 commit comments