From 5fedd065c97a0d1ebba0062a8077a01a9bcf06b1 Mon Sep 17 00:00:00 2001 From: Erico Nunes Date: Tue, 16 Nov 2021 16:44:35 +0100 Subject: [PATCH] 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 Part-of: --- cogl/cogl/cogl-framebuffer.c | 2 -- 1 file changed, 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); }