static void _eglutDestroyWindow(struct eglut_window *win) { eglDestroySurface(_eglut->dpy, win->surface); _eglutNativeFiniWindow(win); eglDestroyContext(_eglut->dpy, win->context); }
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); }