summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorEmil Velikov <emil.veliikov@collabora.com>2016-08-25 11:08:30 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-10-14 12:53:35 +0100
commit9caacb39b9f27919a7c986ad0c5d671a81b1f1e0 (patch)
treee4450a7f3fcd470353351d67512d74094f036a18 /src/egl
parentfdd373acca4a17093d7973c210174c1a12dd7da1 (diff)
downloadexternal_mesa3d-9caacb39b9f27919a7c986ad0c5d671a81b1f1e0.zip
external_mesa3d-9caacb39b9f27919a7c986ad0c5d671a81b1f1e0.tar.gz
external_mesa3d-9caacb39b9f27919a7c986ad0c5d671a81b1f1e0.tar.bz2
loader/dri3: constify the loader_dri3_vtable
Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/platform_x11_dri3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c b/src/egl/drivers/dri2/platform_x11_dri3.c
index 26bb430..3dc9b98 100644
--- a/src/egl/drivers/dri2/platform_x11_dri3.c
+++ b/src/egl/drivers/dri2/platform_x11_dri3.c
@@ -123,7 +123,7 @@ egl_dri3_flush_drawable(struct loader_dri3_drawable *draw, unsigned flags)
dri2_flush_drawable_for_swapbuffers(disp, &dri3_surf->base);
}
-static struct loader_dri3_vtable egl_dri3_vtable = {
+static const struct loader_dri3_vtable egl_dri3_vtable = {
.get_swap_interval = egl_dri3_get_swap_interval,
.clamp_swap_interval = egl_dri3_clamp_swap_interval,
.set_swap_interval = egl_dri3_set_swap_interval,