From 9caacb39b9f27919a7c986ad0c5d671a81b1f1e0 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 25 Aug 2016 11:08:30 +0100 Subject: loader/dri3: constify the loader_dri3_vtable Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom --- src/loader/loader_dri3_helper.c | 2 +- src/loader/loader_dri3_helper.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/loader') diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c index 817929740f2..ca02e97c9e9 100644 --- a/src/loader/loader_dri3_helper.c +++ b/src/loader/loader_dri3_helper.c @@ -130,7 +130,7 @@ loader_dri3_drawable_init(xcb_connection_t *conn, bool is_different_gpu, const __DRIconfig *dri_config, struct loader_dri3_extensions *ext, - struct loader_dri3_vtable *vtable, + const struct loader_dri3_vtable *vtable, struct loader_dri3_drawable *draw) { xcb_get_geometry_cookie_t cookie; diff --git a/src/loader/loader_dri3_helper.h b/src/loader/loader_dri3_helper.h index 658e190a3d7..1d1f15ebb9a 100644 --- a/src/loader/loader_dri3_helper.h +++ b/src/loader/loader_dri3_helper.h @@ -159,7 +159,7 @@ struct loader_dri3_drawable { bool first_init; struct loader_dri3_extensions *ext; - struct loader_dri3_vtable *vtable; + const struct loader_dri3_vtable *vtable; }; void @@ -176,7 +176,7 @@ loader_dri3_drawable_init(xcb_connection_t *conn, bool is_different_gpu, const __DRIconfig *dri_config, struct loader_dri3_extensions *ext, - struct loader_dri3_vtable *vtable, + const struct loader_dri3_vtable *vtable, struct loader_dri3_drawable*); bool loader_dri3_wait_for_msc(struct loader_dri3_drawable *draw, -- cgit v1.2.3