Lines Matching refs:ctx
353 wgl_ctx_shared ? wgl_ctx_shared->ctx : NULL;
438 wgl_ctx->ctx = stw_create_context_attribs(disp->PlatformDisplay, 0, shared,
446 if (!wgl_ctx->ctx)
460 wgl_destroy_context(_EGLDisplay *disp, _EGLContext *ctx)
462 struct wgl_egl_context *wgl_ctx = wgl_egl_context(ctx);
464 if (_eglPutContext(ctx)) {
465 stw_destroy_context(wgl_ctx->ctx);
480 struct stw_context *ctx = stw_current_context();
482 stw_framebuffer_release_locked(wgl_surf->fb, ctx ? ctx->st : NULL);
511 _EGLSurface *rsurf, _EGLContext *ctx)
514 struct wgl_egl_context *wgl_ctx = wgl_egl_context(ctx);
527 if (!_eglBindContext(ctx, dsurf, rsurf, &old_ctx, &old_dsurf, &old_rsurf))
531 struct stw_context *old_cctx = wgl_egl_context(old_ctx)->ctx;
542 cctx = (wgl_ctx) ? wgl_ctx->ctx : NULL;
555 _eglBindContext(old_ctx, old_dsurf, old_rsurf, &ctx, &tmp_dsurf, &tmp_rsurf);
556 assert(&wgl_ctx->base == ctx &&
562 _eglPutContext(ctx);
570 cctx = (old_ctx) ? wgl_egl_context(old_ctx)->ctx : NULL;
583 ctx = NULL;
585 _eglBindContext(ctx, dsurf, rsurf, &tmp_ctx, &tmp_dsurf, &tmp_rsurf);