glmemory: add missing initilisation of tex_target when copying

fixes:

glcolorscale ! video/x-raw\(meta:GstVideoGLTextureUploadMeta\) !
glimagesink
This commit is contained in:
Matthew Waters 2015-02-03 00:26:20 +11:00 committed by Tim-Philipp Müller
parent 29ca0e8a44
commit c2149ec12c

View file

@ -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;