mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
glmemory: add missing initilisation of tex_target when copying
fixes: glcolorscale ! video/x-raw\(meta:GstVideoGLTextureUploadMeta\) ! glimagesink
This commit is contained in:
parent
b947c9805a
commit
46ecf99a8a
1 changed files with 2 additions and 0 deletions
|
@ -1072,6 +1072,7 @@ _gl_mem_copy (GstGLMemory * src, gssize offset, gssize size)
|
|||
copy_params.src = src;
|
||||
copy_params.tex_id = 0;
|
||||
copy_params.out_format = src->tex_type;
|
||||
copy_params.tex_target = src->tex_target;
|
||||
copy_params.out_width = src->tex_width;
|
||||
copy_params.out_height = GL_MEM_HEIGHT (src);
|
||||
copy_params.out_stride = GL_MEM_STRIDE (src);
|
||||
|
@ -1196,6 +1197,7 @@ gst_gl_memory_copy_into_texture (GstGLMemory * gl_mem, guint tex_id,
|
|||
GstGLMemoryCopyParams copy_params;
|
||||
|
||||
copy_params.src = gl_mem;
|
||||
copy_params.tex_target = gl_mem->tex_target;
|
||||
copy_params.tex_id = tex_id;
|
||||
copy_params.out_format = tex_type;
|
||||
copy_params.out_width = width;
|
||||
|
|
Loading…
Reference in a new issue