diff options
author | Erico Nunes <nunes.erico@gmail.com> | 2021-11-16 16:44:35 +0100 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2023-03-19 21:45:14 +0000 |
commit | 860353fb4ed559209871953fe91088fc133f5ad1 (patch) | |
tree | 216b8d99a22d504ac155239b279626142484634d | |
parent | 1fd96e30f5f8a61d70d51f9012112e01818161a7 (diff) | |
download | mutter-860353fb4ed559209871953fe91088fc133f5ad1.tar.gz |
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>
(cherry picked from commit 5fedd065c97a0d1ebba0062a8077a01a9bcf06b1)
-rw-r--r-- | cogl/cogl/cogl-framebuffer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c index 6f24b2e42..3aa2e7124 100644 --- a/cogl/cogl/cogl-framebuffer.c +++ b/cogl/cogl/cogl-framebuffer.c @@ -1695,8 +1695,6 @@ cogl_framebuffer_discard_buffers (CoglFramebuffer *framebuffer, CoglFramebufferPrivate *priv = cogl_framebuffer_get_instance_private (framebuffer); - g_return_if_fail (buffers & COGL_BUFFER_BIT_COLOR); - cogl_framebuffer_driver_discard_buffers (priv->driver, buffers); } |