diff options
author | Matthew Waters <matthew@centricular.com> | 2015-07-07 15:30:17 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2015-07-07 15:32:13 +1000 |
commit | 2b9dddbafe89e05e715b0dce74f2f5e130830968 (patch) | |
tree | 50f13eb3d6c2c8a6bddad3579fb7c95ab99eff98 /ext/gl | |
parent | 26df88cd2485cf2b834ff470278d471b20c2aea3 (diff) |
gltransformation: correct vao usage
keep the vao bound after uploading the new vertex data
fixes a mesa GL error "no vertex array object bound" on caps changes
Diffstat (limited to 'ext/gl')
-rw-r--r-- | ext/gl/gstgltransformation.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/gl/gstgltransformation.c b/ext/gl/gstgltransformation.c index 42bdf268f..9c5d56d92 100644 --- a/ext/gl/gstgltransformation.c +++ b/ext/gl/gstgltransformation.c @@ -580,12 +580,6 @@ gst_gl_transformation_callback (gpointer stuff) if (transformation->caps_change) { _upload_vertices (transformation); _bind_buffer (transformation); - - if (gl->GenVertexArrays) { - gl->BindVertexArray (0); - gl->BindBuffer (GL_ELEMENT_ARRAY_BUFFER, 0); - gl->BindBuffer (GL_ARRAY_BUFFER, 0); - } } else if (!gl->GenVertexArrays) { _bind_buffer (transformation); } |