mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-13 09:43:48 +00:00
fixed parsing bug
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@215 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
1887f4a67c
commit
508b870ded
@ -87,7 +87,7 @@ GLboolean glewParseArgs (int argc, char** argv, char** display, int* visual)
|
|||||||
else if (!strcmp(argv[p], "-visual") || !strcmp(argv[p], "-pf"))
|
else if (!strcmp(argv[p], "-visual") || !strcmp(argv[p], "-pf"))
|
||||||
{
|
{
|
||||||
if (++p >= argc) return GL_TRUE;
|
if (++p >= argc) return GL_TRUE;
|
||||||
*visual = atoi(argv[p++]);
|
*visual = strtol(argv[p++], NULL, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user