From 231e91c88348c0692f207b4d24e5cdd1880c6e26 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Fri, 25 Sep 2015 10:32:00 +0100 Subject: [PATCH] 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 fd29ee030e..78bcbc98e8 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) {