From b10fe76cbfe15d8e40e4e64e1ae12524d64a0298 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Fri, 25 Sep 2015 10:32:00 +0100 Subject: glfilter: use GL_ELEMENT_ARRAY_BUFFER for vbo indices Fixes this error with chromium gpu process: GL_INVALID_OPERATION, glBindBuffer: buffer bound to more than 1 target https://bugzilla.gnome.org/show_bug.cgi?id=755618 --- gst-libs/gst/gl/gstglfilter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index fd29ee030..78bcbc98e 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -1136,8 +1136,8 @@ gst_gl_filter_draw_texture (GstGLFilter * filter, GLuint texture, GL_STATIC_DRAW); gl->GenBuffers (1, &filter->vbo_indices); - gl->BindBuffer (GL_ARRAY_BUFFER, filter->vbo_indices); - gl->BufferData (GL_ARRAY_BUFFER, sizeof (indices), indices, + gl->BindBuffer (GL_ELEMENT_ARRAY_BUFFER, filter->vbo_indices); + gl->BufferData (GL_ELEMENT_ARRAY_BUFFER, sizeof (indices), indices, GL_STATIC_DRAW); if (gl->GenVertexArrays) { -- cgit v1.2.1