Lines Matching defs:contexts
990 vector<EGLContext>& contexts = (thread.getId() == 0 ? m_contexts0 : m_contexts1);
1025 else if (contexts.size() > 5 && ((m_types & TYPE_CONTEXT) != 0))
1040 else if (contexts.size() < 3 && ((m_types & TYPE_CONTEXT) != 0))
1187 contexts.push_back(context);
1247 const int contextNdx = rnd.getInt(0, (int)(contexts.size()-1));
1249 EGLU_CHECK_CALL(egl, destroyContext(m_display, contexts[contextNdx]));
1250 thread.getLog() << ThreadLog::BeginMessage << "eglDestroyContext(" << m_display << ", " << contexts[contextNdx] << ")" << ThreadLog::EndMessage;
1251 contexts.erase(contexts.begin() + contextNdx);
1269 vector<EGLContext>& contexts = (thread.getId() == 0 ? m_contexts0 : m_contexts1);
1286 for (int contextNdx = 0; contextNdx < (int)contexts.size(); contextNdx++)
1287 m_sharedContexts.push_back(contexts[contextNdx]);
1289 contexts.clear();
1298 vector<EGLContext>& contexts = (thread.getId() == 0 ? m_contexts0 : m_contexts1);
1328 contexts.push_back(m_sharedContexts[ndx]);
1427 vector<EGLContext>& contexts = (thread.getId() == 0 ? m_contexts0 : m_contexts1);
1478 for (int contextNdx = 0; contextNdx < (int)contexts.size(); contextNdx++)
1480 if (contexts[contextNdx] != EGL_NO_CONTEXT)
1482 EGLU_CHECK_CALL(egl, destroyContext(m_display, contexts[contextNdx]));
1483 thread.getLog() << ThreadLog::BeginMessage << "eglDestroyContext(" << m_display << ", " << contexts[contextNdx] << ")" << ThreadLog::EndMessage;
1484 contexts[contextNdx] = EGL_NO_CONTEXT;
1487 contexts.clear();