From 4de258aac40334eb6f8366dd87c53f6bb092829b Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 11 Sep 2005 17:45:12 +0000 Subject: Respect -nodouble even though it looks very bad. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16459 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3