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

Brian Paul brianp at vmware.com
Fri Nov 11 17:00:22 UTC 2016


On 11/11/2016 09:43 AM, Emil Velikov wrote:
> 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);
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list