summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Isorce <j.isorce@samsung.com>2015-09-25 10:32:00 +0100
committerMatthew Waters <matthew@centricular.com>2015-09-25 20:42:39 +1000
commitb10fe76cbfe15d8e40e4e64e1ae12524d64a0298 (patch)
tree448b12e38ed6db4e6c52a1398db9fd4fca0d8d8c
parent04856e6c8a0d51a96bebeb7bc77338b8efc4ed10 (diff)
downloadgstreamer-plugins-bad-b10fe76cbfe15d8e40e4e64e1ae12524d64a0298.tar.gz
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
-rw-r--r--gst-libs/gst/gl/gstglfilter.c4
1 files 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) {