mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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
This commit is contained in:
parent
d0bc54956d
commit
231e91c883
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue