[Mesa-dev] [PATCH 1/2] mesa: drop unneeded assert

Emil Velikov emil.l.velikov at gmail.com
Fri Nov 11 16:43:27 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

As seen a couple  of lines above - there's no way for the assert to
trigger.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/mesa/main/framebuffer.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 9c7f0c9..0a4cbef 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -256,7 +256,6 @@ _mesa_reference_framebuffer_(struct gl_framebuffer **ptr,
 
       *ptr = NULL;
    }
-   assert(!*ptr);
 
    if (fb) {
       mtx_lock(&fb->Mutex);
-- 
2.10.2



More information about the mesa-dev mailing list