bool driver_enumerator::next_excluded() { // always advance one release_current(); m_current++; // if we have a filter, scan forward to the next match while (m_current < s_driver_count) { if (!m_included[m_current]) break; m_current++; } // return true if we end up in range return (m_current >= 0 && m_current < s_driver_count); }
ContextGL_X11::~ContextGL_X11() { release_current(); glXDestroyContext( x11_display, p->glx_context ); memdelete( p ); }