summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/ra_gl.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-08-05 22:29:48 +0200
committerNiklas Haas <git@haasn.xyz>2017-08-07 12:46:30 +0200
commit9581fbe56926c75e52bc015fa6146b7f11f3d6a3 (patch)
tree252ff1098cd07bc5ae56770eecf0a3c0549435a5 /video/out/opengl/ra_gl.h
parent207458c7a9b682185a82ee23910c1327a70d276b (diff)
downloadmpv-9581fbe56926c75e52bc015fa6146b7f11f3d6a3.tar.bz2
mpv-9581fbe56926c75e52bc015fa6146b7f11f3d6a3.tar.xz
vo_opengl: generalize ra_buf to support other buffer objects
This allows us to integrate PBOs and SSBOs into the same abstraction, with the potential to easily add UBOs if the need arises.
Diffstat (limited to 'video/out/opengl/ra_gl.h')
-rw-r--r--video/out/opengl/ra_gl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/opengl/ra_gl.h b/video/out/opengl/ra_gl.h
index 0d3828c978..6270daba92 100644
--- a/video/out/opengl/ra_gl.h
+++ b/video/out/opengl/ra_gl.h
@@ -22,9 +22,9 @@ struct ra_tex_gl {
struct gl_pbo_upload pbo;
};
-// For ra_mapped_buffer.priv
-struct ra_mapped_buffer_gl {
- GLuint pbo;
+// For ra_buf.priv
+struct ra_buf_gl {
+ GLuint buffer;
GLsync fence;
};