mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
glvideomixer: don't clobber already allocated shader
This commit is contained in:
parent
6c4be30245
commit
0646c33970
1 changed files with 3 additions and 0 deletions
|
@ -315,6 +315,9 @@ gst_gl_video_mixer_init_shader (GstGLMixer * mixer, GstCaps * outcaps)
|
|||
{
|
||||
GstGLVideoMixer *video_mixer = GST_GL_VIDEO_MIXER (mixer);
|
||||
|
||||
if (video_mixer->shader)
|
||||
gst_gl_context_del_shader (mixer->context, video_mixer->shader);
|
||||
|
||||
return gst_gl_context_gen_shader (mixer->context, video_mixer_v_src,
|
||||
video_mixer_f_src, &video_mixer->shader);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue