From 7625bcc71637ebaf571043c14d45ef6238fea7d7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 3 Aug 2017 17:27:45 +0200 Subject: vo_opengl: remove unused ra_mapped_buffer.preferred_align field It makes no sense to have this on an already created buffer. If anything, the ra backend would have to export this as a global value (e.g. struct ra field), so that whatever allocates the buffer can account for the required alignment. Since this code is in vo_opengl.c in the first place, and since GL doesn't dictate any special alignment here, it doesn't make sense in the first place to export this. (Maybe something like this will be required later.) --- video/out/opengl/ra.h | 1 - video/out/opengl/ra_gl.c | 1 - 2 files changed, 2 deletions(-) diff --git a/video/out/opengl/ra.h b/video/out/opengl/ra.h index ac209a935d..866039a828 100644 --- a/video/out/opengl/ra.h +++ b/video/out/opengl/ra.h @@ -91,7 +91,6 @@ struct ra_mapped_buffer { void *priv; void *data; // pointer to first usable byte size_t size; // total size of the mapping, starting at data - size_t preferred_align; // preferred stride/start alignment for optimal copy }; // Rendering API entrypoints. (Note: there are some additional hidden features diff --git a/video/out/opengl/ra_gl.c b/video/out/opengl/ra_gl.c index faf8812df7..9067a06bd4 100644 --- a/video/out/opengl/ra_gl.c +++ b/video/out/opengl/ra_gl.c @@ -247,7 +247,6 @@ static struct ra_mapped_buffer *gl_create_mapped_buffer(struct ra *ra, struct ra_mapped_buffer *buf = talloc_zero(NULL, struct ra_mapped_buffer); buf->size = size; - buf->preferred_align = 1; struct ra_mapped_buffer_gl *buf_gl = buf->priv = talloc_zero(NULL, struct ra_mapped_buffer_gl); -- cgit v1.2.3