void DesktopWindowLinux::freeResources()
{
    delete m_eventSource;
    if (m_context)
        destroyGLContext();
    if (m_window)
        XDestroyWindow(m_display, m_window);
    if (m_cursor)
        XFreeCursor(m_display, m_cursor);
    if (m_display)
        XCloseDisplay(m_display);
    if (m_ic)
        XDestroyIC(m_ic);
    if (m_im)
        XCloseIM(m_im);
}
Exemple #2
0
 ~GLContext() { if (context) destroyGLContext(context); }