From c8e43e5581a87a4139d50bcfaffe58c48f215f67 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 24 Feb 2015 12:54:54 -0500 Subject: [PATCH] glimagesink: cosmetic cleanup https://bugzilla.gnome.org/show_bug.cgi?id=745105 --- ext/gl/gstglimagesink.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index d437505fe3..7c2c70a08e 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -1454,11 +1454,8 @@ gst_glimage_sink_on_draw (GstGLImageSink * gl_sink) gl->Clear (GL_COLOR_BUFFER_BIT); if (gl_sink->ignore_alpha) { - GLenum dst_func = - gl_sink->ignore_alpha ? GL_CONSTANT_COLOR : GL_ONE_MINUS_SRC_ALPHA; - gl->BlendColor (0.0, 0.0, 0.0, alpha); - gl->BlendFunc (GL_SRC_ALPHA, dst_func); + gl->BlendFunc (GL_SRC_ALPHA, GL_CONSTANT_COLOR); gl->BlendEquation (GL_FUNC_ADD); gl->Enable (GL_BLEND); }