diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-11 17:45:12 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-11 17:45:12 +0000 |
commit | 4de258aac40334eb6f8366dd87c53f6bb092829b (patch) | |
tree | 80c87343df8dc63f10ac799d96144dee6b59edb4 /libvo/vo_gl.c | |
parent | 1887baa1ea3b28946fdb5a96a68ff75c9482ff85 (diff) | |
download | mpv-4de258aac40334eb6f8366dd87c53f6bb092829b.tar.bz2 mpv-4de258aac40334eb6f8366dd87c53f6bb092829b.tar.xz |
Respect -nodouble even though it looks very bad.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16459 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r-- | libvo/vo_gl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 6d6cb5fd76..35bf9a4d42 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -164,6 +164,7 @@ static int initGl(uint32_t d_width, uint32_t d_height) { glDepthMask(GL_FALSE); glDisable(GL_CULL_FACE); glEnable(gl_target); + glDrawBuffer(vo_doublebuffering?GL_BACK:GL_FRONT); mp_msg(MSGT_VO, MSGL_V, "[gl] Creating %dx%d texture...\n", texture_width, texture_height); @@ -429,13 +430,14 @@ flip_page(void) // glFlush(); if (use_glFinish) glFinish(); + if (vo_doublebuffering) #ifdef GL_WIN32 SwapBuffers(vo_hdc); #else glXSwapBuffers( mDisplay,vo_window ); #endif - if (vo_fs && use_aspect) + if (vo_fs && use_aspect && vo_doublebuffering) glClear(GL_COLOR_BUFFER_BIT); } |