summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-08-03 17:27:45 +0200
committerwm4 <wm4@nowhere>2017-08-03 18:59:43 +0200
commit7625bcc71637ebaf571043c14d45ef6238fea7d7 (patch)
treeb821271eff54f6ce719170ebf56e43b3e294144e
parent2bf094cd55a5526dbdf7cab8d5a4bd3fb867c084 (diff)
downloadmpv-7625bcc71637ebaf571043c14d45ef6238fea7d7.tar.bz2
mpv-7625bcc71637ebaf571043c14d45ef6238fea7d7.tar.xz
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.)
-rw-r--r--video/out/opengl/ra.h1
-rw-r--r--video/out/opengl/ra_gl.c1
2 files changed, 0 insertions, 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);