diff options
author | Pekka Paalanen <pekka.paalanen@collabora.com> | 2022-05-17 15:46:03 +0300 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.com> | 2022-05-18 14:18:53 +0300 |
commit | b383f52d3169920bd71b6b2855032aca17556c15 (patch) | |
tree | 5338da0b5b1d8f80245f202281957c53570477c1 /shared | |
parent | 092115786e5b735a62c5aff95b4c8e815cf4defd (diff) | |
download | weston-b383f52d3169920bd71b6b2855032aca17556c15.tar.gz |
gl_renderer: print more GL ES feature flags
This is a human readable replacement for printing out the list of all
available GL extensions that doesn't happen anymore by default.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Diffstat (limited to 'shared')
-rw-r--r-- | shared/string-helpers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/string-helpers.h b/shared/string-helpers.h index e7174b21..302cfa81 100644 --- a/shared/string-helpers.h +++ b/shared/string-helpers.h @@ -95,4 +95,10 @@ str_printf(char **str_out, const char *fmt, ...) *str_out = NULL; } +static inline const char * +yesno(bool cond) +{ + return cond ? "yes" : "no"; +} + #endif /* WESTON_STRING_HELPERS_H */ |