[Mesa-dev] [PATCH] meta: replace abort() with _mesa_problem()

Jose Fonseca jfonseca at vmware.com
Thu Feb 9 07:23:00 PST 2012


Good idea.

Jose

----- Original Message -----
> ---
>  src/mesa/drivers/common/meta.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/src/mesa/drivers/common/meta.c
> b/src/mesa/drivers/common/meta.c
> index aa5fef8..0cf1028 100644
> --- a/src/mesa/drivers/common/meta.c
> +++ b/src/mesa/drivers/common/meta.c
> @@ -3029,7 +3029,8 @@ _mesa_meta_GenerateMipmap(struct gl_context
> *ctx, GLenum target,
>        /* sanity check */
>        status = _mesa_CheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT);
>        if (status != GL_FRAMEBUFFER_COMPLETE_EXT) {
> -         abort();
> +         _mesa_problem(ctx, "Unexpected incomplete framebuffer in "
> +                       "_mesa_meta_GenerateMipmap()");
>           break;
>        }
>  
> --
> 1.7.3.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 


More information about the mesa-dev mailing list