mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-11 17:43:47 +00:00
fixed visualinfo on Linux
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@287 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
fb639a5ce8
commit
1ee92dec12
@ -104,9 +104,7 @@ main (int argc, char** argv)
|
|||||||
fprintf(stderr, " -pf <id>: use given pixelformat\n");
|
fprintf(stderr, " -pf <id>: use given pixelformat\n");
|
||||||
fprintf(stderr, " -h: this screen\n");
|
fprintf(stderr, " -h: this screen\n");
|
||||||
#else
|
#else
|
||||||
fprintf(stderr, "Usage: visualinfo [-a] [-s] [-h] [-display <display>] [-visual <id>]\n");
|
fprintf(stderr, "Usage: visualinfo [-h] [-display <display>] [-visual <id>]\n");
|
||||||
fprintf(stderr, " -a: show all visuals\n");
|
|
||||||
fprintf(stderr, " -s: display to stdout instead of visualinfo.txt (Windows only)\n");
|
|
||||||
fprintf(stderr, " -h: this screen\n");
|
fprintf(stderr, " -h: this screen\n");
|
||||||
fprintf(stderr, " -display <display>: use given display\n");
|
fprintf(stderr, " -display <display>: use given display\n");
|
||||||
fprintf(stderr, " -visual <id>: use given visual\n");
|
fprintf(stderr, " -visual <id>: use given visual\n");
|
||||||
@ -1163,6 +1161,10 @@ GLboolean ParseArgs (int argc, char** argv)
|
|||||||
if (++p >= argc) return GL_TRUE;
|
if (++p >= argc) return GL_TRUE;
|
||||||
visual = (int)strtol(argv[p], NULL, 0);
|
visual = (int)strtol(argv[p], NULL, 0);
|
||||||
}
|
}
|
||||||
|
else if (!strcmp(argv[p], "-h"))
|
||||||
|
{
|
||||||
|
return GL_TRUE;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user