]> git.sesse.net Git - vlc/commitdiff
* opengl.c: clear the color buffer before rendering
authorCyril Deguet <asmax@videolan.org>
Mon, 26 Jul 2004 17:03:00 +0000 (17:03 +0000)
committerCyril Deguet <asmax@videolan.org>
Mon, 26 Jul 2004 17:03:00 +0000 (17:03 +0000)
modules/video_output/opengl.c

index 32a8a6bea3ad909b7b8f1be661d1f662371386b5..a84fe4303629ec106561c37d1559f548a53c8f8a 100644 (file)
@@ -315,6 +315,8 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
     float f_width = (float)p_vout->output.i_width / p_sys->i_tex_width;
     float f_height = (float)p_vout->output.i_height / p_sys->i_tex_height;
 
+    glClear( GL_COLOR_BUFFER_BIT );
+
     glTexImage2D( GL_TEXTURE_2D, 0, 3,
                   p_sys->i_tex_width, p_sys->i_tex_height , 0,
                   VLCGL_RGB_FORMAT, VLCGL_RGB_TYPE, p_sys->p_buffer );