summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-02-18 19:26:27 +0000
committerEmil Velikov <[email protected]>2014-04-28 19:13:39 +0100
commita2454bdfbd8f20b13e7f821d88e8e5da24e3e2a7 (patch)
tree11064592a7385daea51a562ea3f6b06c037f342c /src
parent55d82adec677a163b3d091621d365e6490247110 (diff)
glx/dri3: explicitly assign struct components for glx_*_vtable
... to improve readability of code. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glx/dri3_glx.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index 2a178d55610..4cde9ef5825 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -1542,15 +1542,15 @@ dri3_release_tex_image(Display * dpy, GLXDrawable drawable, int buffer)
}
static const struct glx_context_vtable dri3_context_vtable = {
- dri3_destroy_context,
- dri3_bind_context,
- dri3_unbind_context,
- dri3_wait_gl,
- dri3_wait_x,
- DRI_glXUseXFont,
- dri3_bind_tex_image,
- dri3_release_tex_image,
- NULL, /* get_proc_address */
+ .destroy = dri3_destroy_context,
+ .bind = dri3_bind_context,
+ .unbind = dri3_unbind_context,
+ .wait_gl = dri3_wait_gl,
+ .wait_x = dri3_wait_x,
+ .use_x_font = DRI_glXUseXFont,
+ .bind_tex_image = dri3_bind_tex_image,
+ .release_tex_image = dri3_release_tex_image,
+ .get_proc_address = NULL,
};
/** dri3_bind_extensions
@@ -1603,8 +1603,10 @@ dri3_bind_extensions(struct dri3_screen *psc, struct glx_display * priv,
}
static const struct glx_screen_vtable dri3_screen_vtable = {
- dri3_create_context,
- dri3_create_context_attribs
+ .create_context = dri3_create_context,
+ .create_context_attribs = dri3_create_context_attribs,
+ .query_renderer_integer = NULL,
+ .query_renderer_string = NULL,
};
/** dri3_create_screen