glimagesink: cosmetic cleanup

https://bugzilla.gnome.org/show_bug.cgi?id=745105
This commit is contained in:
Xavier Claessens 2015-02-24 12:54:54 -05:00 committed by Tim-Philipp Müller
parent d9455d9c0e
commit c8e43e5581

View file

@ -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);
}