From e3ec517838ec7aaa097806834599f72bbffaf216 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 24 Feb 2015 23:52:39 +1100 Subject: [PATCH] caopengllayersink: render black when we don't have a texture to display Like when the winsys asks us to redraw before the pipeline has started --- ext/gl/caopengllayersink.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/gl/caopengllayersink.m b/ext/gl/caopengllayersink.m index 1f7b3d1eb3..fdbcf7bba9 100644 --- a/ext/gl/caopengllayersink.m +++ b/ext/gl/caopengllayersink.m @@ -983,6 +983,8 @@ gst_ca_opengl_layer_sink_on_draw (GstCAOpenGLLayerSink * ca_sink) /* check if texture is ready for being drawn */ if (!ca_sink->redisplay_texture) { + gl->ClearColor (0.0f, 0.0f, 0.0f, 1.0f); + gl->Clear (GL_COLOR_BUFFER_BIT); GST_CA_OPENGL_LAYER_SINK_UNLOCK (ca_sink); return; }