From 2f2470488b07f38925a55fdcc7351e139d5ac3e9 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 3 Mar 2015 16:48:24 +1100 Subject: [PATCH] glimagesink: unset the current shader after rendering fixes gltestsrc ! glimagesink when gltestsrc doesn't use a shader --- ext/gl/gstglimagesink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index 8ea7d46192..e271b295b8 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -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