Freeglut crashes on displaying a window. The code is extremely simple.
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
glutCreateWindow("OpenGL First Window");
glutMainLoop();
The error occurs on the last line. More specifically, in fg_main.c on lines 410-411:
if (!FETCH_WCB(*window, Display))
fgError ( "ERROR: No display callback registered for window %d\n", window->ID );
Hi Andrija,
As the error says, it is an error to run the mainloop when you have
windows without a display callback. Call glutDisplayFunc to set one.
Best,
Dee
Hi Andrija,
As the error says, it is an error to run the mainloop when you have
windows without a display callback. Call glutDisplayFunc to set one.
Best,
Dee