mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
glvideomixer: don't clobber already allocated shader
This commit is contained in:
parent
3e092e1579
commit
dc4f9575b1
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);
|
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,
|
return gst_gl_context_gen_shader (mixer->context, video_mixer_v_src,
|
||||||
video_mixer_f_src, &video_mixer->shader);
|
video_mixer_f_src, &video_mixer->shader);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue