void _CDECL_ GrClose (void) { PrintLog ("shutting down graphics subsystem\n"); OglClose();//platform specific code screen.Destroy (); #ifdef OGL_RUNTIME_LOAD if (ogl_rt_loaded) OpenGL_LoadLibrary(false); #endif }
void DestroyOglDisplays( void ) { Display display = _ogl_display_list; Display display_to_kill; while ( display ) { OglClose( display ); free( display->parameters ); display_to_kill = display; display = display->next; free( display_to_kill ); } }