[Mesa-dev] [PATCH] mesa: fix malformed assertion in _image_format_class_to_glenum()
Vinson Lee
vlee at freedesktop.org
Tue Mar 8 05:21:02 UTC 2016
On Mon, Mar 7, 2016 at 5:58 PM, Brian Paul <brianp at vmware.com> wrote:
> ---
> src/mesa/main/shaderimage.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/shaderimage.c b/src/mesa/main/shaderimage.c
> index fa967a2..fd5934f 100644
> --- a/src/mesa/main/shaderimage.c
> +++ b/src/mesa/main/shaderimage.c
> @@ -360,7 +360,7 @@ _image_format_class_to_glenum(enum image_format_class class)
> case IMAGE_FORMAT_CLASS_2_10_10_10:
> return GL_IMAGE_CLASS_10_10_10_2;
> default:
> - assert("Invalid image_format_class");
> + assert(!"Invalid image_format_class");
> return GL_NONE;
> }
> }
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Reviewed-by: Vinson Lee <vlee at freedesktop.org>
More information about the mesa-dev
mailing list