[222/906] Finish TODO task 17

This commit is contained in:
Julien Isorce 2008-09-14 19:56:50 +02:00 committed by Tim-Philipp Müller
parent 5759b60ba3
commit 69159fa0af

View file

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