mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-11 09:33:49 +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"))
|
||||
{
|
||||
if (++p >= argc) return GL_TRUE;
|
||||
*visual = atoi(argv[p++]);
|
||||
*visual = strtol(argv[p++], NULL, 0);
|
||||
}
|
||||
else
|
||||
return GL_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user