- if (workMask & GLUT_INIT_WORK)
- {
- /* Notify windowStatus/visibility, position and size get notified on window creation with message handlers above
- * XXX CHECK: do the messages happen too early like on windows, so client code cannot have registered
- * a callback yet and the message is thus never received by client?
- */
-
- /* Call init context callback */
- INVOKE_WCB( *window, InitContext, ());
-
- /* Lastly, check if we have a display callback, error out if not
- * This is the right place to do it, as the redisplay will be
- * next right after we exit this function, so there is no more
- * opportunity for the user to register a callback for this window.
- */
- if (!FETCH_WCB(*window, Display))
- fgError ( "ERROR: No display callback registered for window %d\n", window->ID );
- }