mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
glimagesink: cosmetic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=745105
This commit is contained in:
parent
004e910006
commit
e25f4f1a60
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue