summaryrefslogtreecommitdiff
path: root/xdriinfo.c
AgeCommit message (Collapse)Author
2022-12-08Ensure screenNum is always initializedAlan Coopersmith
Clears this warning from clang, even though it seems like a false positive, as all the uses are behind the same conditions: xdriinfo.c:117:27: warning: variable 'screenNum' may be uninitialized when used here [-Wconditional-uninitialized] if (func == DRIVER && screenNum == -1) { ^~~~~~~~~ xdriinfo.c:61:28: note: initialize the variable 'screenNum' to silence this warning int nScreens, screenNum; Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08Variable scope reductionAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-03-13Fix xdriinfo not working with glvndHans de Goede
For glx calls to work on libglvnd as glx provider we must first call glXGetClientString. This also means that we can no longer take the shortcut to not open the Display when a driver name is past to options. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2013-11-26Add -version option to print program versionAlan Coopersmith
Add both -version & -display to man page, since options were not previously documented. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-26Print which option was in error along with usage messageAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-01-20Correct make distcheck failure and sparse warnings.Paulo Cesar Pereira de Andrade
2006-01-16GLX_GLXEXT_LEGACY -> GLX_GLXEXT_PROTOTYPES + glxext.hMatthias Hopf
2006-01-13Using glXGetProcAddressARB instead of glXGetProcAddress.Matthias Hopf
Casting to GLubyte* to remove warning.
2005-11-30Bug #5146: Fix building of xdriinfo in the presence of NVIDIA libGL byXORG-6_8_99_903Eric Anholt
using the GLX 1.3 glXGetProcAddressARB instead of glXGetProcAddress.
2004-06-16Initial revisionEric Anholt