diff options
author | Adam Jackson <ajax@redhat.com> | 2021-08-06 17:53:38 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-08-18 21:11:02 +0000 |
commit | bfad9e75c0421b6665e35ee9731a71bd50366c68 (patch) | |
tree | 24d3b9f57fa795b991501c69c8967941ba5f5c2e /src/glx/drisw_glx.c | |
parent | 145992890caeb24c02bd358f7a96dc1d8b730626 (diff) | |
download | mesa-bfad9e75c0421b6665e35ee9731a71bd50366c68.tar.gz |
glx: Store the context vtable on the glx screen
Again this is rewriting part of driX_create_context_attribs to be
caller-agnostic, so that we can eventually unify it among the DRI
backends.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12456>
Diffstat (limited to 'src/glx/drisw_glx.c')
-rw-r--r-- | src/glx/drisw_glx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 02fd2d5aad7..8c48165bb24 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -602,7 +602,7 @@ drisw_create_context_attribs(struct glx_screen *base, return NULL; } - pcp->base.vtable = &drisw_context_vtable; + pcp->base.vtable = base->context_vtable; return &pcp->base; } @@ -902,6 +902,7 @@ driswCreateScreen(int screen, struct glx_display *priv) psc->driver_configs = driver_configs; psc->base.vtable = &drisw_screen_vtable; + psc->base.context_vtable = &drisw_context_vtable; psp = &psc->vtable; psc->base.driScreen = psp; psp->destroyScreen = driswDestroyScreen; |