[Piglit] [PATCH] piglit: fix crashes when using original GLUT

2012-10-15 Thread Brian Paul
The glutInit() function in the original GLUT expects argv[0] to be the program name (as from main()), not a NULL pointer. A strrchr() call crashes on NULL. For now, set argv[0]=piglit. Previously, glutInit would get the program path/name and it would appear in the window title. This seems to

Re: [Piglit] [PATCH] piglit: fix crashes when using original GLUT

2012-10-15 Thread Jose Fonseca
Seems a good idea to me. Jose - Original Message - The glutInit() function in the original GLUT expects argv[0] to be the program name (as from main()), not a NULL pointer. A strrchr() call crashes on NULL. For now, set argv[0]=piglit. Previously, glutInit would get the program

Re: [Piglit] [PATCH] piglit: fix crashes when using original GLUT

2012-10-15 Thread Chad Versace
On 10/15/2012 10:30 AM, Brian Paul wrote: The glutInit() function in the original GLUT expects argv[0] to be the program name (as from main()), not a NULL pointer. A strrchr() call crashes on NULL. For now, set argv[0]=piglit. Previously, glutInit would get the program path/name and it