From 0f5f794ddb75bc4852fb745c14512d5516ee17f5 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Wed, 12 May 2021 18:46:21 +0200 Subject: [PATCH] gl-renderer: make import_simple_dmabuf attributes parameter const The import_simple_dmabuf() function does not modify the contents of its struct dmabuf_attributes parameter, so make it const. Signed-off-by: Philipp Zabel --- libweston/renderer-gl/gl-renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c index eefb9415..35e4f09d 100644 --- a/libweston/renderer-gl/gl-renderer.c +++ b/libweston/renderer-gl/gl-renderer.c @@ -2399,7 +2399,7 @@ gl_renderer_destroy_dmabuf(struct linux_dmabuf_buffer *dmabuf) static EGLImageKHR import_simple_dmabuf(struct gl_renderer *gr, - struct dmabuf_attributes *attributes) + const struct dmabuf_attributes *attributes) { EGLint attribs[52]; int atti = 0;