Lines Matching refs:cur_c
308 void egl_display_t::loseCurrent(egl_context_t * cur_c)
310 if (cur_c) {
311 egl_display_t* display = cur_c->getDisplay();
313 display->loseCurrentImpl(cur_c);
318 void egl_display_t::loseCurrentImpl(egl_context_t * cur_c)
322 ContextRef _cur_c(cur_c);
323 SurfaceRef _cur_r(cur_c ? get_surface(cur_c->read) : NULL);
324 SurfaceRef _cur_d(cur_c ? get_surface(cur_c->draw) : NULL);
328 cur_c->onLooseCurrent();
340 EGLBoolean egl_display_t::makeCurrent(egl_context_t* c, egl_context_t* cur_c,
348 ContextRef _cur_c(cur_c);
349 SurfaceRef _cur_r(cur_c ? get_surface(cur_c->read) : NULL);
350 SurfaceRef _cur_d(cur_c ? get_surface(cur_c->draw) : NULL);
359 if (!cur_c) {
364 result = cur_c->cnx->egl.eglMakeCurrent(
367 cur_c->onLooseCurrent();