-ENTRYPOINT void release_surface(ModeInfo * mi)
-{
- if (surface != NULL)
- {
- int screen;
-
- for (screen = 0; screen < MI_NUM_SCREENS(mi); screen++)
- {
- surfacestruct *sp = &surface[screen];
-
- if (sp->glx_context)
- {
- /* Display lists MUST be freed while their glXContext is current. */
- glXMakeCurrent(MI_DISPLAY(mi), sp->window, *(sp->glx_context));
- }
- }
- (void) free((void *)surface);
- surface = NULL;
- }
- FreeAllGL(mi);
-}
-
-