summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoe Hao Cheng <haochengho12907@gmail.com>2023-02-24 23:49:20 +0800
committerHoe Hao Cheng <haochengho12907@gmail.com>2023-03-03 21:08:59 +0800
commitd0e43d193e0bb1e850bd7a1ee9a4cf340c56e840 (patch)
tree849b1a9150c5a057900df61d8247d42f4e9dbce6
parenta77e1ca8c292f232240bce5b5867622feac721f1 (diff)
downloadmesa-demos-d0e43d193e0bb1e850bd7a1ee9a4cf340c56e840.tar.gz
eglinfo: fix the ifdef-guard in parse_args()
Theoretically this only affects people compiling eglinfo with EGL 1.2 headers... Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
-rw-r--r--src/egl/opengl/eglinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/opengl/eglinfo.c b/src/egl/opengl/eglinfo.c
index 270e1de6..e02f15bb 100644
--- a/src/egl/opengl/eglinfo.c
+++ b/src/egl/opengl/eglinfo.c
@@ -662,6 +662,7 @@ parse_args(int argc, char *argv[], struct options *opts)
goto fail;
}
}
+#endif
/* parse -p */
else if (strcmp(argv[i], "-p") == 0 && i + 1 < argc) {
@@ -696,7 +697,6 @@ parse_args(int argc, char *argv[], struct options *opts)
goto fail;
}
}
-#endif
return;