projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afcb6aa
)
gltransformation: correct vao usage
author
Matthew Waters
<matthew@centricular.com>
Tue, 7 Jul 2015 05:30:17 +0000
(15:30 +1000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:32:05 +0000
(19:32 +0000)
keep the vao bound after uploading the new vertex data
fixes a mesa GL error "no vertex array object bound" on caps changes
ext/gl/gstgltransformation.c
patch
|
blob
|
history
diff --git
a/ext/gl/gstgltransformation.c
b/ext/gl/gstgltransformation.c
index 42bdf268fb0e63464f5ff9a34a6828d7e23a70f2..9c5d56d925c280c2ff6eba30952111c8858598f9 100644
(file)
--- 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);
}