summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErico Nunes <nunes.erico@gmail.com>2021-11-16 16:44:35 +0100
committerFlorian Müllner <fmuellner@gnome.org>2023-03-19 21:45:08 +0000
commitd23e10347dd116b32d49da37f9034ec63daeca98 (patch)
tree4c0ee15922ee4d8c5825fad4f0c5bd8e5e581b47
parentc1133d2f9d6a6a271b0790916470090fbd18f73c (diff)
downloadmutter-d23e10347dd116b32d49da37f9034ec63daeca98.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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c
index d8ffbcd1c..c01ef8d8e 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);
}