glimagesink: cosmetic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=745105
This commit is contained in:
parent
d9455d9c0e
commit
c8e43e5581
@ -1454,11 +1454,8 @@ gst_glimage_sink_on_draw (GstGLImageSink * gl_sink)
|
|||||||
gl->Clear (GL_COLOR_BUFFER_BIT);
|
gl->Clear (GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
if (gl_sink->ignore_alpha) {
|
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->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->BlendEquation (GL_FUNC_ADD);
|
||||||
gl->Enable (GL_BLEND);
|
gl->Enable (GL_BLEND);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user