mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
glmemory: use the correct size for the pbo
It was missing the GstVideoAlignment padding which could cause GL errors related to overrunning the size of the pbo.
This commit is contained in:
parent
02fdc64844
commit
e3d3049641
1 changed files with 1 additions and 3 deletions
|
@ -472,9 +472,7 @@ _transfer_upload (GstGLContext * context, GstGLMemory * gl_mem)
|
|||
GST_CAT_DEBUG (GST_CAT_GL_MEMORY, "uploading texture %u using pbo %u",
|
||||
gl_mem->tex_id, gl_mem->transfer_pbo);
|
||||
|
||||
size =
|
||||
GL_MEM_HEIGHT (gl_mem) * GL_MEM_WIDTH (gl_mem) *
|
||||
_gl_texture_type_n_bytes (gl_mem->tex_type);
|
||||
size = ((GstMemory *) gl_mem)->maxsize;
|
||||
|
||||
if (USING_OPENGL (context) || USING_GLES3 (context)
|
||||
|| USING_OPENGL3 (context)) {
|
||||
|
|
Loading…
Reference in a new issue