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 <p.zabel@pengutronix.de>
This commit is contained in:
Philipp Zabel 2021-05-12 18:46:21 +02:00 committed by Daniel Stone
parent 20d8963d3c
commit 0f5f794ddb

View File

@ -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;