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:
ikits 2004-02-01 23:05:00 +00:00
parent 1887f4a67c
commit 508b870ded

View File

@ -87,7 +87,7 @@ GLboolean glewParseArgs (int argc, char** argv, char** display, int* visual)
else if (!strcmp(argv[p], "-visual") || !strcmp(argv[p], "-pf"))
{
if (++p >= argc) return GL_TRUE;
*visual = atoi(argv[p++]);
*visual = strtol(argv[p++], NULL, 0);
}
else
return GL_TRUE;