glimagesink: unset the current shader after rendering
authorMatthew Waters <matthew@centricular.com>
Tue, 3 Mar 2015 05:48:24 +0000 (16:48 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:57 +0000 (19:31 +0000)
fixes gltestsrc ! glimagesink when gltestsrc doesn't use a shader

ext/gl/gstglimagesink.c

index 8ea7d46..e271b29 100644 (file)
@@ -1485,6 +1485,8 @@ gst_glimage_sink_on_draw (GstGLImageSink * gl_sink)
 
     gl->DrawElements (GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, indices);
 
+    gst_gl_context_clear_shader (gl_sink->context);
+
     if (gl->GenVertexArrays)
       gl->BindVertexArray (0);
     else