summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-08-26 05:48:12 +0200
committerNiklas Haas <git@haasn.xyz>2017-08-27 14:36:00 +0200
commit136cf2b770f08a435710f71fe2fa597c908cc8a0 (patch)
tree10371ef916d52e8b8b8560a75f19e7eb1dac1dce /video/out/opengl/common.c
parent8404a354e546bd0636fcc1ebf2719f1dea7ad8e9 (diff)
downloadmpv-136cf2b770f08a435710f71fe2fa597c908cc8a0.tar.bz2
mpv-136cf2b770f08a435710f71fe2fa597c908cc8a0.tar.xz
vo_opengl: add support for UBOs
Not actually used by anything yet, but straightforward enough to add to the RA API for starters.
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r--video/out/opengl/common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c
index f2550e8b8c..0b83555ad2 100644
--- a/video/out/opengl/common.c
+++ b/video/out/opengl/common.c
@@ -352,6 +352,11 @@ static const struct gl_functions gl_functions[] = {
},
},
{
+ .ver_core = 310,
+ .extension = "GL_ARB_uniform_buffer_object",
+ .provides = MPGL_CAP_UBO,
+ },
+ {
.ver_core = 430,
.extension = "GL_ARB_shader_storage_buffer_object",
.provides = MPGL_CAP_SSBO,