summaryrefslogtreecommitdiff
path: root/ext/gl/gstgltransformation.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gl/gstgltransformation.c')
-rw-r--r--ext/gl/gstgltransformation.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/gl/gstgltransformation.c b/ext/gl/gstgltransformation.c
index eec262bb3..f6c9e3f26 100644
--- a/ext/gl/gstgltransformation.c
+++ b/ext/gl/gstgltransformation.c
@@ -960,19 +960,15 @@ gst_gl_transformation_callback (gpointer stuff)
if (gl->GenVertexArrays)
gl->BindVertexArray (transformation->vao);
- if (transformation->caps_change) {
+ if (transformation->caps_change)
_upload_vertices (transformation);
- _bind_buffer (transformation);
- } else if (!gl->GenVertexArrays) {
- _bind_buffer (transformation);
- }
+ _bind_buffer (transformation);
gl->DrawElements (GL_TRIANGLE_STRIP, 5, GL_UNSIGNED_SHORT, 0);
if (gl->GenVertexArrays)
gl->BindVertexArray (0);
- else
- _unbind_buffer (transformation);
+ _unbind_buffer (transformation);
gst_gl_context_clear_shader (GST_GL_BASE_FILTER (filter)->context);
transformation->caps_change = FALSE;