-
glutCreateWindow()
The programs segfault when they get to glutCreateWindow(). This happens with the example programs, and with one I started on on another computer.
After commenting that out, it crashes on glutMainLoop(), which is the last function.
Any idea what I can do to fix it?
-
Senior Member
OpenGL Guru
Re: glutCreateWindow()
Check that you are calling glutInit( & argc, argv ).
If you are using an old, old glut, ensure that you are passing at least one argument to it via argc/argv. For instance:
int argc = 1;
char *name = "foo";
glutInit( &argc, &name );
-
Re: glutCreateWindow()
I am calling glutInit(), and I tried the code you said. It still doesn't work.
-
Advanced Member
Frequent Contributor
Re: glutCreateWindow()
I had a problem when I called glutCreateWindow() with a NULL pointer for the name once.
-
Re: glutCreateWindow()
I didn't. It had a name.
Is there any alternative to glutCreateWindow()? Should I just try a different toolkit?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules