mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
[222/906] Finish TODO task 17
This commit is contained in:
parent
5759b60ba3
commit
69159fa0af
1 changed files with 30 additions and 25 deletions
|
@ -1623,6 +1623,9 @@ gst_gl_display_thread_gen_shader (GstGLDisplay* display)
|
|||
{
|
||||
glutSetWindow (display->glutWinId);
|
||||
if (GLEW_ARB_fragment_shader)
|
||||
{
|
||||
if (display->gen_shader_vertex_source ||
|
||||
display->gen_shader_fragment_source)
|
||||
{
|
||||
gboolean isAlive = TRUE;
|
||||
GError *error = NULL;
|
||||
|
@ -1652,6 +1655,7 @@ gst_gl_display_thread_gen_shader (GstGLDisplay* display)
|
|||
display->gen_shader = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
GST_CAT_WARNING (GST_CAT_DEFAULT, "One of the filter required ARB_fragment_shader");
|
||||
|
@ -2297,6 +2301,7 @@ gst_gl_display_gen_shader (GstGLDisplay* display,
|
|||
display->gen_shader_fragment_source = shader_fragment_source;
|
||||
gst_gl_display_post_message (GST_GL_DISPLAY_ACTION_GEN_SHADER, display);
|
||||
g_cond_wait (display->cond_gen_shader, display->mutex);
|
||||
if (shader)
|
||||
*shader = display->gen_shader;
|
||||
display->gen_shader = NULL;
|
||||
display->gen_shader_vertex_source = NULL;
|
||||
|
|
Loading…
Reference in a new issue