-/*
- *-----------------------------------------------------------------------------
- * The display is being taken away from us. Free up malloc'ed
- * memory and X resources that we've alloc'ed. Only called
- * once, we must zap everything for every screen.
- *-----------------------------------------------------------------------------
- */
-
-ENTRYPOINT void release_klein(ModeInfo *mi)
-{
- if (klein != NULL)
- {
- int screen;
-
- for (screen = 0; screen < MI_NUM_SCREENS(mi); screen++)
- {
- kleinstruct *kb = &klein[screen];
-
- if (kb->glx_context)
- kb->glx_context = (GLXContext *)NULL;
- }
- (void) free((void *)klein);
- klein = (kleinstruct *)NULL;
- }
- FreeAllGL(mi);
-}
-