OSDN Git Service

mesa: drop unneeded assert
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 11 Nov 2016 16:43:27 +0000 (16:43 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 21 Nov 2016 14:46:40 +0000 (14:46 +0000)
As seen a couple  of lines above - there's no way for the assert to
trigger.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/framebuffer.c

index 20d03fe..c06130d 100644 (file)
@@ -256,7 +256,6 @@ _mesa_reference_framebuffer_(struct gl_framebuffer **ptr,
 
       *ptr = NULL;
    }
-   assert(!*ptr);
 
    if (fb) {
       mtx_lock(&fb->Mutex);