From 230d19e17296b167a555430909d209606613ccdf Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 27 Jan 2015 11:04:07 +1100 Subject: [PATCH] glprototypes: add some (un)map buffer variants for GL/GLES --- gst-libs/gst/gl/glprototypes/base.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/glprototypes/base.h b/gst-libs/gst/gl/glprototypes/base.h index ab25e7e7f5..e81673851d 100644 --- a/gst-libs/gst/gl/glprototypes/base.h +++ b/gst-libs/gst/gl/glprototypes/base.h @@ -298,6 +298,14 @@ GST_GL_EXT_BEGIN (map_vbos, GST_GL_EXT_FUNCTION (void *, MapBuffer, (GLenum target, GLenum access)) +GST_GL_EXT_END () + +GST_GL_EXT_BEGIN (unmap_buffer, + GST_GL_API_OPENGL | GST_GL_API_OPENGL3 | GST_GL_API_GLES2, + 1, 5, + 3, 0, + "ARB\0OES\0", + "vertex_buffer_object\0mapbuffer\0") GST_GL_EXT_FUNCTION (GLboolean, UnmapBuffer, (GLenum target)) GST_GL_EXT_END () @@ -305,10 +313,12 @@ GST_GL_EXT_END () GST_GL_EXT_BEGIN (gl3, GST_GL_API_OPENGL | GST_GL_API_OPENGL3 | GST_GL_API_GLES2, - 3, 1, + 3, 0, 3, 0, "\0", "\0") GST_GL_EXT_FUNCTION (const GLubyte*, GetStringi, (GLenum name, GLint index)) +GST_GL_EXT_FUNCTION (void *, MapBufferRange, + (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access)) GST_GL_EXT_END ()