Commit 9cf9c390 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

opengl: vt: add glGetFramebufferAttachmentParameteriv

Present since OpenGL 3.0. Will be used to fetch the framebuffer depth.
parent 65693927
......@@ -102,6 +102,7 @@ typedef void (APIENTRY *PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLs
# define PFNGLBUFFERDATAPROC typeof(glBufferData)*
# define PFNGLBUFFERSUBDATAPROC typeof(glBufferSubData)*
# define PFNGLDELETEBUFFERSPROC typeof(glDeleteBuffers)*
# define PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC typeof(glGetFramebufferAttachmentParameteriv)*
#if defined(__APPLE__)
# import <CoreFoundation/CoreFoundation.h>
#endif
......@@ -200,6 +201,9 @@ typedef struct {
PFNGLBUFFERDATAPROC BufferData;
PFNGLDELETEBUFFERSPROC DeleteBuffers;
/* Framebuffers commands */
PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC GetFramebufferAttachmentParameteriv;
/* Commands used for PBO and/or Persistent mapping */
PFNGLBUFFERSUBDATAPROC BufferSubData; /* can be NULL */
PFNGLBUFFERSTORAGEPROC BufferStorage; /* can be NULL */
......
......@@ -823,6 +823,8 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
GET_PROC_ADDR(BufferData);
GET_PROC_ADDR(DeleteBuffers);
GET_PROC_ADDR_OPTIONAL(GetFramebufferAttachmentParameteriv);
GET_PROC_ADDR_OPTIONAL(BufferSubData);
GET_PROC_ADDR_OPTIONAL(BufferStorage);
GET_PROC_ADDR_OPTIONAL(MapBufferRange);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment