From 32f726703ddb22a83c57ad5f03177c89f8966c1d Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 24 Jan 2015 23:29:54 +0100 Subject: vo_opengl: remove remnants of dropped stereo buffer support --- video/out/gl_w32.c | 3 --- video/out/gl_x11.c | 11 ----------- video/out/vo.h | 1 - 3 files changed, 15 deletions(-) (limited to 'video') diff --git a/video/out/gl_w32.c b/video/out/gl_w32.c index 3af58cf21d..f2b7cf63d3 100644 --- a/video/out/gl_w32.c +++ b/video/out/gl_w32.c @@ -48,9 +48,6 @@ static bool create_dc(struct MPGLContext *ctx, int flags) pfd.nVersion = 1; pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; - if (flags & VOFLAG_STEREO) - pfd.dwFlags |= PFD_STEREO; - pfd.iPixelType = PFD_TYPE_RGBA; pfd.cColorBits = 24; pfd.iLayerType = PFD_MAIN_PLANE; diff --git a/video/out/gl_x11.c b/video/out/gl_x11.c index fa1ab62a28..8a67e0e13f 100644 --- a/video/out/gl_x11.c +++ b/video/out/gl_x11.c @@ -207,7 +207,6 @@ static bool config_window_x11(struct MPGLContext *ctx, int flags) } int glx_attribs[] = { - GLX_STEREO, False, GLX_X_RENDERABLE, True, GLX_X_VISUAL_TYPE, GLX_TRUE_COLOR, GLX_RED_SIZE, 1, @@ -226,16 +225,6 @@ static bool config_window_x11(struct MPGLContext *ctx, int flags) flags &= ~VOFLAG_ALPHA; } } - if (flags & VOFLAG_STEREO) { - set_glx_attrib(glx_attribs, GLX_STEREO, True); - fbc = select_fb_config(vo, glx_attribs, flags); - if (!fbc) { - MP_ERR(vo, "Could not find a stereo visual," - " 3D will probably not work!\n"); - set_glx_attrib(glx_attribs, GLX_STEREO, False); - flags &= ~VOFLAG_STEREO; - } - } if (!fbc) fbc = select_fb_config(vo, glx_attribs, flags); if (!fbc) { diff --git a/video/out/vo.h b/video/out/vo.h index 2d298088b0..60680813b8 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -132,7 +132,6 @@ struct voctrl_get_equalizer_args { #define VOFLAG_FLIPPING 0x08 #define VOFLAG_HIDDEN 0x10 //< Use to create a hidden window -#define VOFLAG_STEREO 0x20 //< Use to create a stereo-capable window #define VOFLAG_GL_DEBUG 0x40 // Hint to request debug OpenGL context #define VOFLAG_ALPHA 0x80 // Hint to request alpha framebuffer -- cgit v1.2.3