[Mesa-dev] [PATCH v3 4/8] mesa unpack: use _mesa_problem rather than assert

Brian Paul brianp at vmware.com
Thu Aug 9 07:43:13 PDT 2012


On 07/23/2012 10:59 AM, Jordan Justen wrote:
> If the unpack functions is not available, use _mesa_problem
> rather than asserting.
>
> Signed-off-by: Jordan Justen<jordan.l.justen at intel.com>
> ---
>   src/mesa/main/format_unpack.c |    5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c
> index 529c416..bd21852 100644
> --- a/src/mesa/main/format_unpack.c
> +++ b/src/mesa/main/format_unpack.c
> @@ -1604,6 +1604,11 @@ get_unpack_rgba_function(gl_format format)
>         initialized = GL_TRUE;
>      }
>
> +   if (table[format] == NULL) {
> +      _mesa_problem(NULL, "unsupported unpack for format %s",
> +                    _mesa_get_format_name(format));
> +   }
> +
>      return table[format];
>   }
>

(Getting back to this patch series)

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


More information about the mesa-dev mailing list