summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-06-14 10:35:43 +0200
committerwm4 <wm4@nowhere>2016-06-14 10:35:43 +0200
commit788929e4e07e00325cc1b2f58569db9de1ba47fb (patch)
tree7f29822cd0e439a0626f4ecf8fcee651bb129a99 /video/out/opengl/common.h
parent3682df2dd50313812aadaec92f554b3d60dadc30 (diff)
downloadmpv-788929e4e07e00325cc1b2f58569db9de1ba47fb.tar.bz2
mpv-788929e4e07e00325cc1b2f58569db9de1ba47fb.tar.xz
vo_opengl: use standard functions to retrieve display depth
Until now, we've used system-specific API (GLX, EGL, etc.) to retrieve the depth of the default framebuffer. (We equal this to display depth and use the determined depth for dithering.) We can actually retrieve this value through standard GL API, and it works everywhere (except GLES 2 of course). This simplifies everything a great deal. egl_helpers.c is empty now. But I expect that some EGL boilerplate will be moved to it, so don't remove it yet.
Diffstat (limited to 'video/out/opengl/common.h')
-rw-r--r--video/out/opengl/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h
index ea5442b4ff..7427befe99 100644
--- a/video/out/opengl/common.h
+++ b/video/out/opengl/common.h
@@ -91,7 +91,6 @@ struct GL {
char *extensions; // Equivalent to GL_EXTENSIONS
int mpgl_caps; // Bitfield of MPGL_CAP_* constants
bool debug_context; // use of e.g. GLX_CONTEXT_DEBUG_BIT_ARB
- int fb_r, fb_g, fb_b; // frame buffer bit depth (0 if unknown)
void (GLAPIENTRY *Viewport)(GLint, GLint, GLsizei, GLsizei);
void (GLAPIENTRY *Clear)(GLbitfield);
@@ -169,6 +168,8 @@ struct GL {
GLint);
void (GLAPIENTRY *BlitFramebuffer)(GLint, GLint, GLint, GLint, GLint, GLint,
GLint, GLint, GLbitfield, GLenum);
+ void (GLAPIENTRY *GetFramebufferAttachmentParameteriv)(GLenum, GLenum,
+ GLenum, GLint *);
void (GLAPIENTRY *Uniform1f)(GLint, GLfloat);
void (GLAPIENTRY *Uniform2f)(GLint, GLfloat, GLfloat);