Am Donnerstag, 4. November 2004 10:03 schrieben Sie:
> > the trace of functions called is like:
> >
> > glutInit(&argc, argv)
> > glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH)
> > glutInitWindowSize
> > glutInitWindowPos
> > glutCreateWindow
> >
> > glutDisplayFunc
> > glutReshapeFunc
> >
> > ... after this the first "real" gl functions are called:
> >
> > glPixelStorei(GL_PACK_ALIGNMENT,1)
> > glDepthFunc(GL_LESS)
> >
> > When running the program it crashes at the first gl-call.
> > (glPixelStorei, or when commented out glPixelStorei at glDepthFunc....)
>
> It's not legal to make GL calls before you have an OpenGL context. On
> Linux and Windows they'll silently fail, on the Mac you'll crash.
>
> In GLUT's case, that means that you must call glutCreateWindow or
> glutEnterGameMode before making any GL calls.
>
> -Keith
As you can see in the outlined "trace" of glut and gl function calls, I call
glutCreateWindow before any gl-functions.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden
This email sent to email@hidden