From: Andrii Simiklit Date: Tue, 25 Jun 2019 14:42:43 +0000 (+0300) Subject: mesa: use a correct function return type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62c60595844ba206dcf0f18451609e03ee65a7d3;p=mesa.git mesa: use a correct function return type v2: standard 'bool' can be used ( Eric Engestrom ) Reviewed-by: Eric Engestrom Signed-off-by: Andrii Simiklit --- diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index 8d6c76a3419..43f561843ac 100644 --- a/src/mesa/main/formats.c +++ b/src/mesa/main/formats.c @@ -575,7 +575,7 @@ _mesa_is_format_integer(mesa_format format) /** * Return true if the given format is a color format. */ -GLenum +bool _mesa_is_format_color_format(mesa_format format) { const struct gl_format_info *info = _mesa_get_format_info(format); diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h index 08039067a6c..d976a48521d 100644 --- a/src/mesa/main/formats.h +++ b/src/mesa/main/formats.h @@ -732,7 +732,7 @@ _mesa_is_format_etc2(mesa_format format); bool _mesa_is_format_astc_2d(mesa_format format); -GLenum +bool _mesa_is_format_color_format(mesa_format format); extern GLenum