Lines Matching refs:cur_c
306 void egl_display_t::loseCurrent(egl_context_t * cur_c)
308 if (cur_c) {
309 egl_display_t* display = cur_c->getDisplay();
311 display->loseCurrentImpl(cur_c);
316 void egl_display_t::loseCurrentImpl(egl_context_t * cur_c)
320 ContextRef _cur_c(cur_c);
321 SurfaceRef _cur_r(cur_c ? get_surface(cur_c->read) : NULL);
322 SurfaceRef _cur_d(cur_c ? get_surface(cur_c->draw) : NULL);
326 cur_c->onLooseCurrent();
338 EGLBoolean egl_display_t::makeCurrent(egl_context_t* c, egl_context_t* cur_c,
346 ContextRef _cur_c(cur_c);
347 SurfaceRef _cur_r(cur_c ? get_surface(cur_c->read) : NULL);
348 SurfaceRef _cur_d(cur_c ? get_surface(cur_c->draw) : NULL);
357 if (!cur_c) {
362 result = cur_c->cnx->egl.eglMakeCurrent(
365 cur_c->onLooseCurrent();