Commit 989af902 authored by Matthew Waters's avatar Matthew Waters 🐨
Browse files

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.
parent 3a79bd91
...@@ -472,9 +472,7 @@ _transfer_upload (GstGLContext * context, GstGLMemory * gl_mem) ...@@ -472,9 +472,7 @@ _transfer_upload (GstGLContext * context, GstGLMemory * gl_mem)
GST_CAT_DEBUG (GST_CAT_GL_MEMORY, "uploading texture %u using pbo %u", GST_CAT_DEBUG (GST_CAT_GL_MEMORY, "uploading texture %u using pbo %u",
gl_mem->tex_id, gl_mem->transfer_pbo); gl_mem->tex_id, gl_mem->transfer_pbo);
size = size = ((GstMemory *) gl_mem)->maxsize;
GL_MEM_HEIGHT (gl_mem) * GL_MEM_WIDTH (gl_mem) *
_gl_texture_type_n_bytes (gl_mem->tex_type);
if (USING_OPENGL (context) || USING_GLES3 (context) if (USING_OPENGL (context) || USING_GLES3 (context)
|| USING_OPENGL3 (context)) { || USING_OPENGL3 (context)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment