From 62c60595844ba206dcf0f18451609e03ee65a7d3 Mon Sep 17 00:00:00 2001 From: Andrii Simiklit Date: Tue, 25 Jun 2019 17:42:43 +0300 Subject: [PATCH] mesa: use a correct function return type v2: standard 'bool' can be used ( Eric Engestrom ) Reviewed-by: Eric Engestrom Signed-off-by: Andrii Simiklit --- src/mesa/main/formats.c | 2 +- src/mesa/main/formats.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2