eglglessink: Don't clear surface color at render
authorReynaldo H. Verdejo Pinochet <reynaldo@collabora.com>
Fri, 21 Sep 2012 01:01:20 +0000 (22:01 -0300)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 18 Oct 2012 12:35:12 +0000 (14:35 +0200)
ext/eglgles/gsteglglessink.c

index b05177c..f51f7cb 100644 (file)
@@ -1584,8 +1584,10 @@ gst_eglglessink_render_and_display (GstEglGlesSink * eglglessink,
         goto HANDLE_ERROR;
       }
 
-      glClearColor (0.0, 0.0, 0.0, 0.0);
-      glClear (GL_COLOR_BUFFER_BIT);
+      /* Don't really need to clear surface color
+       * glClearColor (0.0, 0.0, 0.0, 0.0);
+       * glClear (GL_COLOR_BUFFER_BIT);
+       */
       glDrawElements (GL_TRIANGLE_STRIP, 4, GL_UNSIGNED_SHORT, 0);
       if (got_gl_error ("glDrawElements"))
         goto HANDLE_ERROR;