diff options
author | Andrii Simiklit <[email protected]> | 2019-06-25 17:42:43 +0300 |
---|---|---|
committer | andrii simiklit <[email protected]> | 2019-06-27 07:53:41 +0000 |
commit | 62c60595844ba206dcf0f18451609e03ee65a7d3 (patch) | |
tree | 8df2b573f5705a8a7c1473fccb85180c61a13e86 /src/mesa | |
parent | 9bef1f1ff17d68aa668b8c176bb8845d76c3db69 (diff) |
mesa: use a correct function return type
v2: standard 'bool' can be used
( Eric Engestrom <[email protected]> )
Reviewed-by: Eric Engestrom <[email protected]>
Signed-off-by: Andrii Simiklit <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/formats.c | 2 | ||||
-rw-r--r-- | 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 |