diff options
author | Marek Olšák <[email protected]> | 2017-11-19 21:04:07 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-25 17:16:56 +0100 |
commit | 11e25eb7f4538ab7f1ca5d06e8e1ae09be10ad45 (patch) | |
tree | f5068d29dcca17e1bdc53ffffe5589c06f8f593e /src/gallium/state_trackers/glx/xlib | |
parent | 9c5b4eb6b4ea46af274927a0af5907e996bcdcfe (diff) |
gallium/hud: update the HUD interface for multiple contexts
This is the boring subset of the following commit.
All new parameters are optional.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/glx/xlib')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index 79bf45d7d78..934c0aba118 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.c +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c @@ -1035,7 +1035,7 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list, c->st->st_manager_private = (void *) c; - c->hud = hud_create(c->st->cso_context); + c->hud = hud_create(c->st->cso_context, NULL); return c; @@ -1051,7 +1051,7 @@ PUBLIC void XMesaDestroyContext( XMesaContext c ) { if (c->hud) { - hud_destroy(c->hud); + hud_destroy(c->hud, NULL); } c->st->destroy(c->st); @@ -1357,7 +1357,7 @@ void XMesaSwapBuffers( XMesaBuffer b ) if (xmctx && xmctx->hud) { struct pipe_resource *back = xmesa_get_framebuffer_resource(b->stfb, ST_ATTACHMENT_BACK_LEFT); - hud_run(xmctx->hud, back); + hud_run(xmctx->hud, NULL, back); } if (xmctx && xmctx->xm_buffer == b) { |