[Bug 751165] New: gles2: glBufferSubData is called with GL_PIXEL_UNPACK_BUFFER

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Jun 18 08:23:51 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=751165

            Bug ID: 751165
           Summary: gles2: glBufferSubData is called with
                    GL_PIXEL_UNPACK_BUFFER
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: julien.isorce at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

When using gles2 I got  "GL ERROR :GL_INVALID_ENUM : glBufferSubData: target
was GL_PIXEL_UNPACK_BUFFER"

Indeed it seems gl->BufferSubData is called and with wrong target (on gles2 it
only accepts GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER)

GST_GL_PLATFORM=egl GST_GL_API=gles2 GST_GL_WINDOW=x11 gst-launch-1.0
videotestsrc ! glimagesink

It can also be reproduced when configuring gstgl with --disable-glx
--disable-opengl --enable-egl --enable-gles2


--- a/gst-libs/gst/gl/gstglbasebuffer.c
+++ b/gst-libs/gst/gl/gstglbasebuffer.c
@@ -263,6 +263,7 @@ gst_gl_base_buffer_upload_cpu_write (GstGLBaseBuffer * mem,
GstMapInfo * info,

       gl->UnmapBuffer (mem->target);
     } else if (gl->BufferSubData) {
+      g_print("-- gl->BufferSubData with GL_PIXEL_UNPACK_BUFFER ? %d\n",
mem->target == 0x88EC /* GL_PIXEL_UNPACK_BUFFER */);
       gl->BufferSubData (mem->target, 0, size, mem->data);
     }
     gl->BindBuffer (mem->target, 0);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list