示例#1
0
static void
_eglutDestroyWindow(struct eglut_window *win)
{
   eglDestroySurface(_eglut->dpy, win->surface);
   _eglutNativeFiniWindow(win);
   eglDestroyContext(_eglut->dpy, win->context);
}
示例#2
0
static void
_eglutDestroyWindow(struct eglut_window *win)
{
   if (_eglut->surface_type != EGL_PBUFFER_BIT &&
       _eglut->surface_type != EGL_SCREEN_BIT_MESA)
      eglDestroySurface(_eglut->dpy, win->surface);

   _eglutNativeFiniWindow(win);

   eglDestroyContext(_eglut->dpy, win->context);
}