aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2021-11-29 17:11:30 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2021-11-30 21:15:36 +0000
commitf2029b1578bb15ba474ea9c2e436aa30aa00135f (patch)
treef4e4de4bd9e8dc1d2a80510c2e39d75a54d2e9a5
parent60404b415aa7b6b2818478c482da21fe28b445f6 (diff)
downloadwaffle-f2029b1578bb15ba474ea9c2e436aa30aa00135f.tar.gz
wflinfo: Print absence of GL context flags correctly
From context, it seems this was meant to check gl_context_flags, not the constant array context_flags. Detected by clang -Wtautological-pointer-compare. Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--src/utils/wflinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c
index ed2c0f7..70cb0ce 100644
--- a/src/utils/wflinfo.c
+++ b/src/utils/wflinfo.c
@@ -579,7 +579,7 @@ print_context_flags(void)
return;
}
- if (context_flags == 0) {
+ if (gl_context_flags == 0) {
printf(" 0x0\n");
return;
}