mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
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
This commit is contained in:
parent
26df88cd24
commit
2b9dddbafe
1 changed files with 0 additions and 6 deletions
|
@ -580,12 +580,6 @@ gst_gl_transformation_callback (gpointer stuff)
|
||||||
if (transformation->caps_change) {
|
if (transformation->caps_change) {
|
||||||
_upload_vertices (transformation);
|
_upload_vertices (transformation);
|
||||||
_bind_buffer (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) {
|
} else if (!gl->GenVertexArrays) {
|
||||||
_bind_buffer (transformation);
|
_bind_buffer (transformation);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue