mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
glimagesink: Move overlay rendering after video rendering
This is mostly cosmetic, but heoretically it reduces the amount of required object in the context at one point. It also avoids potential conflicts.
This commit is contained in:
parent
4075b1112c
commit
ea484fb968
1 changed files with 2 additions and 2 deletions
|
@ -1915,8 +1915,6 @@ gst_glimage_sink_on_draw (GstGLImageSink * gl_sink)
|
||||||
|
|
||||||
gl->DrawElements (GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, 0);
|
gl->DrawElements (GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, 0);
|
||||||
|
|
||||||
gst_gl_overlay_compositor_draw_overlays (gl_sink->overlay_compositor);
|
|
||||||
|
|
||||||
gst_gl_context_clear_shader (gl_sink->context);
|
gst_gl_context_clear_shader (gl_sink->context);
|
||||||
|
|
||||||
if (gl->GenVertexArrays)
|
if (gl->GenVertexArrays)
|
||||||
|
@ -1926,6 +1924,8 @@ gst_glimage_sink_on_draw (GstGLImageSink * gl_sink)
|
||||||
|
|
||||||
if (gl_sink->ignore_alpha)
|
if (gl_sink->ignore_alpha)
|
||||||
gl->Disable (GL_BLEND);
|
gl->Disable (GL_BLEND);
|
||||||
|
|
||||||
|
gst_gl_overlay_compositor_draw_overlays (gl_sink->overlay_compositor);
|
||||||
}
|
}
|
||||||
/* end default opengl scene */
|
/* end default opengl scene */
|
||||||
window->is_drawing = FALSE;
|
window->is_drawing = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue