cogl/framebuffer: Remove requirement to discard color buffer

cogl_framebuffer_discard_buffers required that the color buffer is
passed, although users might want to discard e.g. just depth and/or
stencil buffers.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2091>
This commit is contained in:
Erico Nunes 2021-11-16 16:44:35 +01:00 committed by Robert Mader
parent 63522de4d0
commit 5fedd065c9

View File

@ -1695,8 +1695,6 @@ cogl_framebuffer_discard_buffers (CoglFramebuffer *framebuffer,
CoglFramebufferPrivate *priv = CoglFramebufferPrivate *priv =
cogl_framebuffer_get_instance_private (framebuffer); cogl_framebuffer_get_instance_private (framebuffer);
g_return_if_fail (buffers & COGL_BUFFER_BIT_COLOR);
cogl_framebuffer_driver_discard_buffers (priv->driver, buffers); cogl_framebuffer_driver_discard_buffers (priv->driver, buffers);
} }