diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-11-10 22:48:41 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-14 12:32:00 +0200 |
commit | 111757c3f424963a5ceaafbb358183de0ea7f6e3 (patch) | |
tree | 87faf116a4bb5aa2667dff9d11bfed59f171a795 /libvo/vo_gl.c | |
parent | 94f543d114560dae933c102bd861e801fb37a280 (diff) | |
download | mpv-111757c3f424963a5ceaafbb358183de0ea7f6e3.tar.bz2 mpv-111757c3f424963a5ceaafbb358183de0ea7f6e3.tar.xz |
vo_gl: create stereo-capable window when using Quadbuffer 3D
Select a stereo pixel format for window when Quadbuffer OpenGL was
selected as 3D mode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32620 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r-- | libvo/vo_gl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 2af082da71..ea454c8f0e 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -613,6 +613,8 @@ static int initGl(uint32_t d_width, uint32_t d_height) { static int create_window(uint32_t d_width, uint32_t d_height, uint32_t flags, const char *title) { + if (stereo_mode == GL_3D_QUADBUFFER) + flags |= VOFLAG_STEREO; #ifdef CONFIG_GL_WIN32 if (glctx.type == GLTYPE_W32 && !vo_w32_config(d_width, d_height, flags)) return -1; |