glframebuffer: don't clear the framebuffer
authorMatthew Waters <matthew@centricular.com>
Tue, 19 May 2015 01:11:02 +0000 (11:11 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:01 +0000 (19:32 +0000)
Breaks attempting to blend with the destination buffer and should be done
explicitly by the callback anyway.

gst-libs/gst/gl/gstglframebuffer.c

index 0446c00..34b32b1 100644 (file)
@@ -201,9 +201,6 @@ gst_gl_framebuffer_use_v2 (GstGLFramebuffer * frame, gint texture_fbo_width,
           GST_GL_API_OPENGL3))
     gl->DrawBuffer (GL_COLOR_ATTACHMENT0);
 
-  gl->ClearColor (0.0, 0.0, 0.0, 0.0);
-  gl->Clear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-
   /* the opengl scene */
   cb (stuff);